Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Sep 2002 13:10:01 -0400
From:      Mike Tancsa <mike@sentex.net>
To:        stable@freebsd.org
Subject:   Problem caching local mac address when using DHCP
Message-ID:  <5.1.1.6.0.20020916125834.04bc1c18@marble.sentex.ca>

next in thread | raw e-mail | index | archive | help

I am not sure if this is a problem or not, or could be somehow leveraged to 
do "bad things."  But I noticed on a box I was putting together, the system 
would not see its own mac address when using DHCP to get its IP 
address.  e.g. When NOT using the DHCP client, all works as is.  After 
bootup time, I see an empty arp cache-- not even the local nic's MAC 
addresses which I find a bit surprising, but I think its always been that way.

e.g.

smtp3% arp -na
? (192.168.43.1) at 00:50:fc:24:24:a0 on rl0 [ethernet]
? (192.168.43.27) at 00:01:80:0c:68:b9 on rl0 [ethernet]
smtp3% ping 192.168.43.199
PING 192.168.43.199 (192.168.43.199): 56 data bytes
64 bytes from 192.168.43.199: icmp_seq=0 ttl=64 time=0.092 ms
^C
--- 192.168.43.199 ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.092/0.092/0.092/0.000 ms
smtp3% arp -na
? (192.168.43.1) at 00:50:fc:24:24:a0 on rl0 [ethernet]
? (192.168.43.27) at 00:01:80:0c:68:b9 on rl0 [ethernet]
? (192.168.43.199) at 00:01:80:20:f9:a2 on rl0 permanent [ethernet]
smtp3%

i.e. the 192.168.43.199 entry.

Yet, if I boot up with

ifconfig_rl0="DHCP"
in /etc/rc.conf

smtp3% arp -na
? (192.168.43.1) at 00:50:fc:24:24:a0 on rl0 [ethernet]
? (192.168.43.27) at 00:01:80:0c:68:b9 on rl0 [ethernet]
smtp3% ping 192.168.43.199
PING 192.168.43.199 (192.168.43.199): 56 data bytes
64 bytes from 192.168.43.199: icmp_seq=0 ttl=64 time=0.070 ms
64 bytes from 192.168.43.199: icmp_seq=1 ttl=64 time=0.030 ms
^C
--- 192.168.43.199 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.030/0.050/0.070/0.020 ms
smtp3% !ar
arp -na
? (192.168.43.1) at 00:50:fc:24:24:a0 on rl0 [ethernet]
? (192.168.43.27) at 00:01:80:0c:68:b9 on rl0 [ethernet]
smtp3%

No local NIC mac address.  Is this part of the normal behavior ?

	---Mike
--------------------------------------------------------------------
Mike Tancsa,                          	          tel +1 519 651 3400
Sentex Communications,     			  mike@sentex.net
Providing Internet since 1994                    www.sentex.net
Cambridge, Ontario Canada			  www.sentex.net/mike


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.1.1.6.0.20020916125834.04bc1c18>