NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Network Oddities



I am having some odd behavior from my NICs or maybe from the network or dhcpcd, not sure.

With ethernet cables plugged into both wm0 and wm1. Everything works; however the only ifconfig file is ifconfig.wm1. Everything works. Reading through the docs, the recommendation is to have an ifconfig.if for each interface. The dhcpcd service is up and running without issue. I copy ifconfig.wm1 to ifconfig.wm0 and restart the network. But I get an error:

sudo service network restart
Stopping network.
Deleting aliases.
Downing network interfaces: wm0 wm1.
Starting network.
Hostname: netverbs57.ronverbs.dev
IPv6 mode: host
Configuring network interfaces: wm0 wm1.
Adding interface aliases:.
Waiting for DAD to complete for statically configured addresses...
ifconfig: SIOCGIFAFLAG_IN6: Can't assign requested address

After a reboot none of the nics have IP addresses. If I restart dhcpcd I get this error

sudo service dhcpcd restart
dhcpcd not running? (check /var/run/dhcpcd.pid).
Starting dhcpcd.
main: control_open: Connection refused
[1] Segmentation fault (core dumped) RC_PID= _rc_pid= _rc_original_stdout_fd= _rc_o...

If I remove /etc/ifconfig.wm0 and reboot, everything returns to normal. However, if I restart the network, then restart dhcpcd, the same Sementation fault appears.

I found this when I tried to create a bridge with a tap.

Summary:
With only /etc/ifconfig.wm1, both wm0 and wm1 work. The network can be restarted and dhcpcd can be restarted. Add /etc/ifconfig.wm0, reboot, no ip addresses assigned. Cannot restart dhcpcd, seg fault. Remove /etc/ifconfig.wm0 and reboot, back to normal. Both nics have addresses. Restart the network works, but restarting dhcpcd results in a seg fault.

Anything I can look for?

===============================================================
HELPFUL INFO

~> uname -a
NetBSD netverbs57.ronverbs.dev 9.2 NetBSD 9.2 (GENERIC) #0: Wed May 12 13:15:55 UTC 2021 mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/amd64/compile/GENERIC amd64


from /etc/rc.conf
# Add local overrides below.
#
hostname=netverbs57.ronverbs.dev
dhcpcd=YES
#dhcpcd_flags="-qM"

Listing /etc
ll /etc | grep ifconfig
-rw-r--r--   1 root  wheel      20B Apr 10 07:09 ifconfig.wm1

cat /etc/ifconfig.wm1
up
media autoselect

ifconfig | grep -w inet
        inet 192.168.1.182/24 broadcast 192.168.1.255 flags 0x0
        inet 192.168.1.186/24 broadcast 192.168.1.255 flags 0x0
        inet 127.0.0.1/8 flags 0x0


sudo service dhcpcd status
dhcpcd is running as pid 241.


ifconfig
wm0: flags=0x8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        capabilities=7ff80<TSO4,IP4CSUM_Rx,IP4CSUM_Tx,TCP4CSUM_Rx>
        capabilities=7ff80<TCP4CSUM_Tx,UDP4CSUM_Rx,UDP4CSUM_Tx,TCP6CSUM_Rx>
        capabilities=7ff80<TCP6CSUM_Tx,UDP6CSUM_Rx,UDP6CSUM_Tx,TSO6>
        enabled=0
        ec_capabilities=7<VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU>
        ec_enabled=2<VLAN_HWTAGGING>
        address: 68:05:ca:1b:15:f8
media: Ethernet autoselect (1000baseT full-duplex,flowcontrol,master,rxpause,txpause)
        status: active
        inet 192.168.1.182/24 broadcast 192.168.1.255 flags 0x0
        inet6 fe80::638a:f74a:53da:36bb%wm0/64 flags 0x0 scopeid 0x1
        inet6 2600:6c5e:1d00:56de:7c0e:e015:3a9a:339c/64 flags 0x0
wm1: flags=0x8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        capabilities=7ff80<TSO4,IP4CSUM_Rx,IP4CSUM_Tx,TCP4CSUM_Rx>
        capabilities=7ff80<TCP4CSUM_Tx,UDP4CSUM_Rx,UDP4CSUM_Tx,TCP6CSUM_Rx>
        capabilities=7ff80<TCP6CSUM_Tx,UDP6CSUM_Rx,UDP6CSUM_Tx,TSO6>
        enabled=0
        ec_capabilities=17<VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,EEE>
        ec_enabled=2<VLAN_HWTAGGING>
        address: 60:45:cb:71:10:be
media: Ethernet autoselect (1000baseT full-duplex,flowcontrol,master,rxpause,txpause)
        status: active
        inet 192.168.1.186/24 broadcast 192.168.1.255 flags 0x0
        inet6 fe80::6245:cbff:fe71:10be%wm1/64 flags 0x0 scopeid 0x2
        inet6 2600:6c5e:1d00:56de:b25c:5f71:1a4b:ea17/64 flags 0x0
lo0: flags=0x8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33624
        inet 127.0.0.1/8 flags 0x0
        inet6 ::1/128 flags 0x20<NODAD>
        inet6 fe80::1%lo0/64 flags 0x0 scopeid 0x3

~> dmesg | grep wm0
[     1.050563] wm0 at pci2 dev 0 function 0: Intel i82574L (rev. 0x00)
[     1.050563] wm0: for TX and RX interrupting at msix2 vec 0 affinity to 1
[     1.050563] wm0: for TX and RX interrupting at msix2 vec 1 affinity to 2
[     1.050563] wm0: for LINK interrupting at msix2 vec 2
[     1.050563] wm0: PCI-Express bus
[ 1.050563] wm0: 2048 words FLASH, version 1.8.0, Image Unique ID 0000ffff
[     1.050563] wm0: ASPM L0s and L1 are disabled to workaround the errata.
[     1.050563] wm0: Ethernet address 68:05:ca:1b:15:f8
[     1.050563] wm0: 0x224480<FLASH,IOH_VALID,PCIE,ASF_FIRM,WOL>
[     1.050563] makphy0 at wm0 phy 1: Marvell 88E1149 Gigabit PHY, rev. 1

~> dmesg | grep wm1
[ 1.050563] wm1 at pci0 dev 31 function 6: I219 V Ethernet Connection (rev. 0x00)
[     1.050563] wm1: interrupting at msi4 vec 0
[     1.050563] wm1: PCI-Express bus
[     1.050563] wm1: 4096 words FLASH, version 0.2.4
[     1.050563] wm1: Ethernet address 60:45:cb:71:10:be
[     1.050563] wm1: 0x6a4080<FLASH,PCIE,ASF_FIRM,AMT,WOL,EEE>
[ 1.050563] ihphy0 at wm1 phy 2: i217 10/100/1000 media interface, rev. 6



--
Ron Georgia
"There seems to be a scratch in the prism of my understanding."


Home | Main Index | Thread Index | Old Index