Bug 131094 - dhclient(8) sets wrong IP address
Summary: dhclient(8) sets wrong IP address
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 7.1-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-28 22:10 UTC by Jin Guojun
Modified: 2018-01-03 05:13 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jin Guojun 2009-01-28 22:10:01 UTC
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.
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:59:49 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped