Date: Wed, 28 Jan 2009 22:00:22 GMT From: Jin Guojun <jguojun@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: bin/131094: dhclient sets wrong IP address Message-ID: <200901282200.n0SM0Mxm000920@www.freebsd.org> Resent-Message-ID: <200901282210.n0SMA1M1074173@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 131094 >Category: bin >Synopsis: dhclient sets wrong IP address >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jan 28 22:10:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Jin Guojun >Release: 7.1-RELEASE >Organization: >Environment: FreeBSD test.Belkin 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Sat Jan 10 20:47:04 PST 2009 root@test.Belkin:/usr/src/sys/i386/compile/MinMax i386 >Description: When network connection (0.0 subnet)to nfe0 interface is down and then up in a few minutes, dhclient somehow set wrong IP (2.0 subnet) on the nfe0 interface. fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=8<VLAN_MTU> ether 00:90:27:71:f2:13 inet 192.168.2.17 netmask 0xffffff00 broadcast 192.168.2.255 media: Ethernet autoselect (100baseTX) status: active nfe0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=8<VLAN_MTU> ether 00:1e:90:c6:6f:e6 inet 192.168.0.99 netmask 0xffffff00 broadcast 192.168.0.255 inet 192.168.2.6 netmask 0xffffff00 broadcast 192.168.2.255 media: Ethernet autoselect (100baseTX <full-duplex>) status: active >How-To-Repeat: Must have two netwrok interfaces. One (fxp0) is on a network to a priamry router. The second interface (nfe0) is on a private network (DHCP server may or may not be up). Both interfaces are set to ="DHCP" in /etc/rc.conf. Disconnect Ethernet cable from nfe0 (2nd NIC), the NIC will get a IP from primary network (in this case -- 192.168.2.6). Clear this bad ip and configgure nfe0 to 192.168.0.##, then plug in the Ethernet cable on NIC nfe0, without DHCP server on, soner, this NIC will have two IP addresses shown in Description section. >Fix: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901282200.n0SM0Mxm000920>