Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

arp and /etc/ethers

1,431 views
Skip to first unread message

peas...@shaw.ca

unread,
Oct 24, 2010, 9:50:01 PM10/24/10
to
root@dalton:~# arp
Address HWtype HWaddress Flags Mask Iface
cantor.invalid ether 00:20:af:07:85:43 C LocACS29H400713
142.103.107.254 ether 00:1e:f6:e6:00:00 C eth0

root@dalton:~# cat /etc/ethers
# <Ethernet address> (<ip address>|<name>)
08:00:20:0E:84:78 172.24.2.2

root@dalton:~# arp -f /etc/ethers

root@dalton:~# arp
Address HWtype HWaddress Flags Mask Iface
cantor.invalid ether 00:20:af:07:85:43 C LocACS29H400713
carnot.invalid ether 08:00:20:0e:84:78 CM LocBelkin
142.103.107.254 ether 00:1e:f6:e6:00:00 C eth0

'man arp' has no mention of a configuration file. How should
arp reference /etc/ethers automatically at startup?

Thanks, ... Peter E.

--
Telephone 1 360 450 2132. 7785886232 is gone.
Shop pages http://carnot.yi.org/ accessible as long as the old
drives survive; installation of NetBSD on new drives pending.
Personal pages, http://members.shaw.ca/peasthope/ .


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/171056664....@cantor.invalid

Jordan Metzmeier

unread,
Oct 24, 2010, 11:30:02 PM10/24/10
to
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 10/24/2010 08:42 PM, peas...@shaw.ca wrote


>
> 'man arp' has no mention of a configuration file. How should
> arp reference /etc/ethers automatically at startup?
>
> Thanks, ... Peter E.
>

Perhaps missing from Lenny, but the arp manpage in squeeze include
information on it.

- -f filename, --file filename
Similar to the -s option, only this time the address info is
taken from file filename. This can be used if ARP entries for a
lot of hosts have to be set up. The name of the data file is
very often /etc/ethers, but this is not official. If no filename
is specified /etc/ethers is used as default.

The format of the file is simple; it only contains ASCII text
lines with a hostname, and a hardware address separated by
whitespace. Additionally the pub, temp and netmask flags can be
used.

Regards,
- --
Jordan Metzmeier
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQIcBAEBCAAGBQJMxPh9AAoJEKj/C3qNthmTYzQQALskrI3j8nBOOxPyK3f657Cr
YmyK9DzaU0IqUBDs+9F1kFVI73hykakrCeyCmu5K2W5G8bqMsFyiuBfWBw9UxqCO
yqCP0rJlfrI1PiM+2Rz34V3FhPyvyZO6EfRJZX39UP7J7IarwxOQs9IyoYGoA1Di
OAOb4sLyr8li7C2tVd584Sz/uQP/RuCoZeCvU0NjK6WOvDbnI38YcZwZ5mDkS8UK
k6BakIhJbX1J1Ft+wjJsQtSUIXpcyqYpF22qAiyK/bz/gf3v6uG3HBVANMblubMe
09JAqFr8SAN7tje6+4A6XUK0VjZraKlE9K47OxzIAf2EakZP8q2qOpCZOm4HuUgu
9Px02uduuJbIkKRxKI53CCI0voIj7zleYQw64KNy7zN3SoX2Xij3nv/mO4x/YFI5
h6/cdtlkFqsfLmnBTHrtsRtxwRAQJyzJL2e5+T9EZQbFmBB894FZObLiA5zV1qhC
ahryig2EW4lX0kMr0IObeOZXX2+X9U0IxwYDPADiP3nVQZZQ7xqfB0gpjLHIKJpO
JOTwa8i6DAS/SjYRLc978nXBMrs2zs8QcZA60YKYw9QPobZVpNguRdpaQCtLAVqo
ZURfkGwKRWifPkOmBnh8qMpeZ446npR3WTnefOBRiceOkriT6HOGNcpzdDP/G8lL
Eu/CedJcZboJc08UE1rI
=xaxv
-----END PGP SIGNATURE-----


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/4CC4F880...@gmail.com

peas...@shaw.ca

unread,
Oct 25, 2010, 10:20:01 PM10/25/10
to
From: Jordan Metzmeier <tita...@gmail.com>
Date: Sun, 24 Oct 2010 22:24:48 -0500

> Perhaps missing from Lenny, but the arp manpage in squeeze include
> information on it.
>
> - -f filename, --file filename

It's there is squeeze also and there is no problem using it
interactively. Ref. my original post. My question was worded
badly. I want 'arp -f /etc/ethers' to happen automatically at startup.
Should it be put in /etc/initab or where?

Thanks, ... P.

--
Telephone 1 360 450 2132. 7785886232 is gone.
Shop pages http://carnot.yi.org/ accessible as long as the old
drives survive; installation of NetBSD on new drives pending.
Personal pages, http://members.shaw.ca/peasthope/ .

--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/171056665....@cantor.invalid

Bob Proulx

unread,
Oct 25, 2010, 10:30:02 PM10/25/10
to
peas...@shaw.ca wrote:
> 'man arp' has no mention of a configuration file. How should
> arp reference /etc/ethers automatically at startup?
> ...

> My question was worded badly. I want 'arp -f /etc/ethers' to happen
> automatically at startup. Should it be put in /etc/initab or where?

It is very unusual to need to manually set entries in the arp table.

In any case, the full approach would be to create a boot time startup
script in /etc/init.d/arp_local or some such to perform this task.
The file /etc/init.d/skeleton is provided as a template and may be
copied and then modified as needed. After that has been copied to
/etc/init.d/arp_local and edited appropriately then the startup links
can be created with '# update-rc.d arp_local defaults'. But you might
not need to be so rigorous for such a simple thing as what you want to
do.

A long standing Unix tradition has been to use /etc/rc.local for local
hacks such as this. If you put the command there then the
/etc/init.d/rc.local startup script will automatically run it at boot
time.

Humans are good about editing files but software tools have trouble
with it. Therefore automated software in packages always create their
own files which can be installed and removed. As such the rc.local
really only works okay for human editing. But it is there and
simple and available for whatever purpose you need it for. I would
probably go the simple route and just put it there. It is a conffile
and your changes will be preserved on upgrades.

Bob

signature.asc

Tom H

unread,
Oct 25, 2010, 10:50:02 PM10/25/10
to
On Mon, Oct 25, 2010 at 10:07 PM, <peas...@shaw.ca> wrote:
> From: Jordan Metzmeier <tita...@gmail.com>

>>
>> Perhaps missing from Lenny, but the arp manpage in squeeze include
>> information on it.
>>
>> -f filename, --file filename
>
> It's there is squeeze also and there is no problem using it
> interactively. Ref. my original post. My question was worded
> badly.  I want 'arp -f /etc/ethers' to happen automatically at startup.

/etc/rc.local


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/AANLkTikDYexsqzDfUyMmY...@mail.gmail.com

Tom H

unread,
Oct 25, 2010, 11:40:01 PM10/25/10
to
On Mon, Oct 25, 2010 at 10:24 PM, Bob Proulx <b...@proulx.com> wrote:
> peas...@shaw.ca wrote:
>> 'man arp' has no mention of a configuration file.  How should
>> arp reference /etc/ethers automatically at startup?
>> ...
>> My question was worded badly.  I want 'arp -f /etc/ethers' to happen
>> automatically at startup. Should it be put in /etc/initab or where?
>
> It is very unusual to need to manually set entries in the arp table.
>
> In any case, the full approach would be to create a boot time startup
> script in /etc/init.d/arp_local or some such to perform this task.
> The file /etc/init.d/skeleton is provided as a template and may be
> copied and then modified as needed. After that has been copied to
> /etc/init.d/arp_local and edited appropriately then the startup links
> can be created with '# update-rc.d arp_local defaults'.

The full approach is definitely better than using "/etc/rc.local" even
if it's more involved. I've lost track whether this thread's about
Lenny or Squeeze/Sid but for Lenny the above is straightforward. For
Squeeze/Sid, you have to take dependency-boot into account when
creating an "/etc/init.d" script. In this case, it might be as trivial
as making the script depend on the network being up ("Required-Start:
$network"?) but, at least for me, it's new territory.


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/AANLkTitOMJpWdSHn4_0cd...@mail.gmail.com

peas...@shaw.ca

unread,
Oct 26, 2010, 12:30:04 PM10/26/10
to
From: Bob Proulx <b...@proulx.com>
Date: Mon, 25 Oct 2010 20:24:34 -0600

> It is very unusual to need to manually set entries in the arp table.

Here's the bigger picture. I'm working to install NetBSD on the old Sparcstation 2
using netboot. In the first step, the SS2 should get it's IP address from a Debian server
by means of RARP. Back at the end of July it was no trouble. Now the the SS2 console
reports no ARP/RARP response. I wonder whether this situation is consequent to an
update in Squeeze or to a configuration detail I've overlooked. My question about
arp and /etc/ethers is from troubleshooting RARP. If the server hasn't noticed
/etc/ethers I don't expect it to give the RARP response.

The other day I noticed this.
=============================
http://lists.debian.org/debian-devel/2009/03/msg00780.html
# From: MartA-n Ferrari <tin...@debian.or.>
# Date: Sun, 15 Mar 2009 14:30:18 -0300
...
* rarp should be dropped, as the linux kernel doesn't support it
anymore, since the 2.3 series. The replacement, arpd, is already
included in iproute.
...
=============================
Can arpd also provide RARP? Is rarpd unnecessary now?

Is anyone currently using RARP and netbooting from a Debian Squeeze? Any tips?

Thanks, ... Peter E.


--
Telephone 1 360 450 2132. 7785886232 is gone.
Shop pages http://carnot.yi.org/ accessible as long as the old
drives survive; installation of NetBSD on new drives pending.
Personal pages, http://members.shaw.ca/peasthope/ .

--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/171056666....@cantor.invalid

0 new messages