Ifconfig (DHCP?) configures two IPs in one IF
This problem comes in 8.1-R. I have seen it before and thought I filed a report but cannot find it. I found one (bin/21292) for ifconfig, but it was for two NICs with a same IP. Now is a reversed case One NIC has two IPs. Here is the description: Due to DHCP server down, I manually configured rl0 to 192.168.0.10 for temporarily use. In the middle of working, DHCP came back and assigned another IP on the rl0, now NIC is down due to two conflict IP addresses. rl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=8VLAN_MTU ether 00:40:f4:d1:23:9a inet 192.168.0.10 netmask 0xff00 broadcast 192.168.0.255 inet 10.10.50.126 netmask 0xff00 broadcast 10.10.50.255 media: Ethernet autoselect (100baseTX full-duplex) status: active plip0: flags=8810POINTOPOINT,SIMPLEX,MULTICAST metric 0 mtu 1500 I tried unplumb/delete rl0, but if does not work. Before the bug can be fixed, is any way to fix the IP without rebooting the machine? -Jin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Ifconfig (DHCP?) configures two IPs in one IF
rl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=8VLAN_MTU ether 00:40:f4:d1:23:9a inet 192.168.0.10 netmask 0xff00 broadcast 192.168.0.255 inet 10.10.50.126 netmask 0xff00 broadcast 10.10.50.255 media: Ethernet autoselect (100baseTX full-duplex) status: active plip0: flags=8810POINTOPOINT,SIMPLEX,MULTICAST metric 0 mtu 1500 I tried unplumb/delete rl0, but if does not work. Before the bug can be fixed, is any way to fix the IP without rebooting the machine? Try this # ifconfig rl0 -alias 192.168.0.10 Regards Alberto Mijares ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Ifconfig (DHCP?) configures two IPs in one IF
On 8/5/2010 11:17 AM, Guojun Jin wrote: This problem comes in 8.1-R. I have seen it before and thought I filed a report but cannot find it. I found one (bin/21292) for ifconfig, but it was for two NICs with a same IP. Now is a reversed case One NIC has two IPs. Here is the description: Due to DHCP server down, I manually configured rl0 to 192.168.0.10 for temporarily use. In the middle of working, DHCP came back and assigned another IP on the rl0, now NIC is down due to two conflict IP addresses. rl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=8VLAN_MTU ether 00:40:f4:d1:23:9a inet 192.168.0.10 netmask 0xff00 broadcast 192.168.0.255 inet 10.10.50.126 netmask 0xff00 broadcast 10.10.50.255 media: Ethernet autoselect (100baseTXfull-duplex) status: active plip0: flags=8810POINTOPOINT,SIMPLEX,MULTICAST metric 0 mtu 1500 I tried unplumb/delete rl0, but if does not work. Before the bug can be fixed, is any way to fix the IP without rebooting the machine? -Jin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org Are you bringing down the interface before you try and delete? ifconfig r10 down ifconfig r10 delete ifconfig r10 up dhclient r10 That should delete all the ips then refresh it from DHCP at the end. At least it did on my desktop that I just tested it on. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Ifconfig (DHCP?) configures two IPs in one IF
Guojun Jin writes: This problem comes in 8.1-R. I have seen it before and thought I filed a report but cannot find it. I found one (bin/21292) for ifconfig, but it was for two NICs with a same IP. Now is a reversed case One NIC has two IPs. Here is the description: Due to DHCP server down, I manually configured rl0 to 192.168.0.10 for temporarily use. In the middle of working, DHCP came back and assigned another IP on the rl0, now NIC is down due to two conflict IP addresses. rl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=8VLAN_MTU ether 00:40:f4:d1:23:9a inet 192.168.0.10 netmask 0xff00 broadcast 192.168.0.255 inet 10.10.50.126 netmask 0xff00 broadcast 10.10.50.255 media: Ethernet autoselect (100baseTX full-duplex) status: active plip0: flags=8810POINTOPOINT,SIMPLEX,MULTICAST metric 0 mtu 1500 I tried unplumb/delete rl0, but if does not work. Before the bug can be fixed, is any way to fix the IP without rebooting the machine? # ifconfig rl0 -alias 192.168.0.10 Above will cause 192.168.0.10 to be removed from the interface. For details, see ifconfig(1). HTH -- Ashish SHUKLA | GPG: F682 CDCC 39DC 0FEA E116 20B6 C746 CFA9 E74F A4B0 freebsd.org!ashish | http://people.freebsd.org/~ashish/ “Few false ideas have more firmly gripped the minds of so many intelligent men than the one that, if they just tried, they could invent a cipher that no one could break.” (David Kahn, The Codebreakers, 1967) pgp2PlqZ3NVAU.pgp Description: PGP signature
RE: Ifconfig (DHCP?) configures two IPs in one IF
-alias works, also delete works. The 'delete: cannot have - in front of it, otherwise, it gives an improper message; # ifconfig rl0 -delete 1.2.3.4 ifconfig: -delete: bad value This seems telling the 1.2.3.4 is a bad value. It should say: ifconfig: -delete -- bad option/switch Now we know -delete: itself is bad, not the value after it is bad. -Original Message- From: Alberto Mijares [mailto:amijar...@gmail.com] Sent: Thu 8/5/2010 12:24 PM To: Guojun Jin Cc: bug-follo...@freebsd.org; questi...@freebsd.org Subject: Re: Ifconfig (DHCP?) configures two IPs in one IF rl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=8VLAN_MTU ether 00:40:f4:d1:23:9a inet 192.168.0.10 netmask 0xff00 broadcast 192.168.0.255 inet 10.10.50.126 netmask 0xff00 broadcast 10.10.50.255 media: Ethernet autoselect (100baseTX full-duplex) status: active plip0: flags=8810POINTOPOINT,SIMPLEX,MULTICAST metric 0 mtu 1500 I tried unplumb/delete rl0, but if does not work. Before the bug can be fixed, is any way to fix the IP without rebooting the machine? Try this # ifconfig rl0 -alias 192.168.0.10 Regards Alberto Mijares ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org