[Bug 256767] ifconfig(8) NOAUTO and rc.conf(5): untimely configuration (up) of a network interface when it should be down

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 25 Aug 2021 22:11:07 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256767

--- Comment #6 from Mason Loring Bliss <mason@blisses.org> ---
I have more detail. My X environment fires up barriec inside a new screen
session. I can sit there and watch it try to connect for ages. If I say
'ifconfig' to look at what's configured, that seems to trigger something.
It'll come back showing the interface down, but a dhclient fires up and
configured em0. I assume this means devd is taking action somehow, and will
try to track this further. (IP/MAC obscured)

$ date
Wed Aug 25 18:06:44 EDT 2021
$ ps ax | grep dhclient
82286 11  S+   0:00.00 grep dhclient
$ ifconfig
em0: flags=8822<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
       
options=481249b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LRO,WOL_MAGIC,VLAN_HWFILTER,NOMAP>
        ether 00:11:22:33:44:55
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
        inet 127.0.0.1 netmask 0xff000000
        groups: lo
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
$ ps ax | grep dhclient
29602  -  SCs  0:00.00 dhclient: em0 (dhclient)
95364  -  Ss   0:00.00 dhclient: system.syslog (dhclient)
98418  -  Ss   0:00.00 dhclient: em0 [priv] (dhclient)
36147 11  S+   0:00.00 grep dhclient
$ ifconfig
em0: flags=8863<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
       
options=481249b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LRO,WOL_MAGIC,VLAN_HWFILTER,NOMAP>
        ether 00:11:22:33:44:55
        inet 192.168.0.5 netmask 0xffffff00 broadcast 192.168.0.255
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
        inet 127.0.0.1 netmask 0xff000000
        groups: lo
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>

-- 
You are receiving this mail because:
You are the assignee for the bug.