I have a similar issue:
I have a dgs-1210-10p and a (hopefully) sane DSA config.
EDIT:
- Version: r20255-0582acf429 (from a few days ago).
- Exact Model: Could be
F1
, as a sticker on the back (not bottom) indicates, but not sure
When I use proto dhcp
on one of the VLAN interfaces, the interface gets an address, but IPv4 does not work. I.e. the gateway IP gets no ARP/IP in the neighbor
table.
(IPv6 however just works fine.)
root@sw1:~# netstat -nt
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 156 fde6:a09a:b373:10::d1f9:22 fde6:a09a:b373:41::d22f:34530 ESTABLISHED
BUT If I assign the or any address manually then ARP, and therefor IPv4 works.
At first I thought its an issue with one untagged and multiple tagged vlans on that hybrid port till I realized that DHCP went fine, and it is really just ARP...
For now I just setup all VLANs as tagged on that trunk.
DHCP log from cpe
:
Wed Aug 10 19:41:48 2022 daemon.info dnsmasq-dhcp[18565]: DHCPRELEASE(br-vlan16) 192.168.16.180 08:5a:11:a2:7f:10
Wed Aug 10 19:41:49 2022 daemon.info dnsmasq-dhcp[18565]: DHCPRELEASE(br-vlan16) 00:03:00:01:08:5a:11:a2:7f:10
Wed Aug 10 19:41:50 2022 kern.info kernel: [93263.028531] Atheros AR8216/AR8236/AR8316 mdio.0:00: Port 2 is down
Wed Aug 10 19:42:46 2022 kern.info kernel: [93318.323956] Atheros AR8216/AR8236/AR8316 mdio.0:00: Port 2 is up
Wed Aug 10 19:43:11 2022 kern.info kernel: [93343.924115] Atheros AR8216/AR8236/AR8316 mdio.0:00: Port 2 is down
Wed Aug 10 19:43:13 2022 kern.info kernel: [93345.971781] Atheros AR8216/AR8236/AR8316 mdio.0:00: Port 2 is up
Wed Aug 10 19:43:14 2022 daemon.info dnsmasq-dhcp[18565]: DHCPSOLICIT(br-vlan16) 00:03:00:01:08:5a:11:a2:7f:10
Wed Aug 10 19:43:14 2022 daemon.info dnsmasq-dhcp[18565]: DHCPADVERTISE(br-vlan16) fde6:a09a:b373:10::d1f9 00:03:00:01:08:5a:11:a2:7f:10 sw1
Wed Aug 10 19:43:14 2022 daemon.info dnsmasq-dhcp[18565]: DHCPADVERTISE(br-vlan16) 2003:XX:bf2f:9210::d1f9 00:03:00:01:08:5a:11:a2:7f:10 sw1
Wed Aug 10 19:43:16 2022 daemon.info dnsmasq-dhcp[18565]: DHCPREQUEST(br-vlan16) 00:03:00:01:08:5a:11:a2:7f:10
Wed Aug 10 19:43:16 2022 daemon.info dnsmasq-dhcp[18565]: DHCPREPLY(br-vlan16) fde6:a09a:b373:10::d1f9 00:03:00:01:08:5a:11:a2:7f:10 sw1
Wed Aug 10 19:43:16 2022 daemon.info dnsmasq-dhcp[18565]: DHCPREPLY(br-vlan16) 2003:XX:bf2f:9210::d1f9 00:03:00:01:08:5a:11:a2:7f:10 sw1
Wed Aug 10 19:43:20 2022 daemon.info dnsmasq-dhcp[18565]: DHCPDISCOVER(br-vlan16) 08:5a:11:a2:7f:10
Wed Aug 10 19:43:20 2022 daemon.info dnsmasq-dhcp[18565]: DHCPOFFER(br-vlan16) 192.168.16.180 08:5a:11:a2:7f:10
Wed Aug 10 19:43:20 2022 daemon.info dnsmasq-dhcp[18565]: DHCPDISCOVER(br-vlan16) 08:5a:11:a2:7f:10
Wed Aug 10 19:43:20 2022 daemon.info dnsmasq-dhcp[18565]: DHCPOFFER(br-vlan16) 192.168.16.180 08:5a:11:a2:7f:10
Wed Aug 10 19:43:20 2022 daemon.info dnsmasq-dhcp[18565]: DHCPREQUEST(br-vlan16) 192.168.16.180 08:5a:11:a2:7f:10
Wed Aug 10 19:43:20 2022 daemon.info dnsmasq-dhcp[18565]: DHCPACK(br-vlan16) 192.168.16.180 08:5a:11:a2:7f:10 sw1
Wed Aug 10 19:43:20 2022 daemon.info dnsmasq-dhcp[18565]: SLAAC-CONFIRM(br-vlan16) 2003:XX:bf2f:9210:a5a:11ff:fea2:7f10 sw1
Wed Aug 10 19:43:20 2022 daemon.info dnsmasq-dhcp[18565]: SLAAC-CONFIRM(br-vlan16) fde6:a09a:b373:10:a5a:11ff:fea2:7f10 sw1
IPv4 dows not work
root@sw1:~# ping 192.168.16.1
PING 192.168.16.1 (192.168.16.1): 56 data bytes
^C
--- 192.168.16.1 ping statistics ---
2 packets transmitted, 0 packets received, 100% packet loss
root@sw1:~# ip n
192.168.16.132 dev switch.16 FAILED
192.168.16.1 dev switch.16 FAILED
2003:XX:bf2f:9210::1 dev switch.16 lladdr 02:00:01:01:00:10 router STALE
fe80::1ff:fe01:43 dev switch.67 lladdr 02:00:01:01:00:43 router STALE
fde6:a09a:b373:10::1 dev switch.16 lladdr 02:00:01:01:00:10 router STALE
fe80::1ff:fe01:10 dev switch.16 lladdr 02:00:01:01:00:10 router REACHABLE
root@sw1:~# ip -o link show dev switch.16
15: switch.16@switch: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000\ link/ether 08:5a:11:a2:7f:10 brd ff:ff:ff:ff:ff:ff
root@sw1:~# ip -o -4 addr show dev switch.16
15: switch.16 inet 192.168.16.180/24 brd 192.168.16.255 scope global switch.16\ valid_lft forever preferred_lft forever
root@sw1:~# ping 192.168.16.1
PING 192.168.16.1 (192.168.16.1): 56 data bytes
^C
--- 192.168.16.1 ping statistics ---
2 packets transmitted, 0 packets received, 100% packet loss
root@sw1:~# ip -4 addr flush dev switch.16
root@sw1:~# ip addr add 192.168.16.180/24 dev switch.16
root@sw1:~# ping -c 2 192.168.16.1
PING 192.168.16.1 (192.168.16.1): 56 data bytes
64 bytes from 192.168.16.1: seq=0 ttl=64 time=1.877 ms
64 bytes from 192.168.16.1: seq=1 ttl=64 time=0.836 ms
--- 192.168.16.1 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
root@sw1:~# cat /etc/config/network [68/573]
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config device
option name 'switch'
option type 'bridge'
list ports 'lan1'
list ports 'lan2'
list ports 'lan3'
list ports 'lan4'
list ports 'lan5'
list ports 'lan6'
list ports 'lan7'
list ports 'lan8'
list ports 'lan9'
list ports 'lan10'
option macaddr '08:5a:11:a2:7f:10'
##############################################################################
config bridge-vlan
option device 'switch'
option vlan '1'
list ports 'lan2:u*'
list ports 'lan3:u*'
list ports 'lan4:u*'
list ports 'lan5:u*'
list ports 'lan6:u*'
list ports 'lan7:u*'
config bridge-vlan
option device 'switch'
option vlan '16'
list ports 'lan8:t'
config bridge-vlan
option device 'switch'
option vlan '17'
list ports 'lan8:t'
config bridge-vlan
option device 'switch'
option vlan '64'
list ports 'lan8:t'
config bridge-vlan
option device 'switch'
option vlan '65'
list ports 'lan8:t'
config bridge-vlan
option device 'switch'
option vlan '66'
list ports 'lan8:t'
config bridge-vlan
option device 'switch'
option vlan '67'
list ports 'lan8:t'
config bridge-vlan
option device 'switch'
option vlan '4094'
list ports 'lan1:u*'
##############################################################################
config interface 'vlan1'
option device 'switch.1'
option proto 'none'
config interface 'vlan16'
option device 'switch.16'
option proto 'dhcp'
config interface 'vlan16_v6'
option device 'switch.16'
option proto 'dhcpv6'
config interface 'vlan17'
option device 'switch.17'
option proto 'none'
config interface 'vlan64'
option device 'switch.64'
option proto 'none'
config interface 'vlan65'
option device 'switch.65'
option proto 'none'
config interface 'vlan66'
option device 'switch.66'
option proto 'none'
config interface 'vlan67'
option device 'switch.67'
option proto 'none'
config interface 'vlan4094'
option device 'switch.4094'
option proto 'static'
option ip6class 'local'
option ip6assign '64'
This could maybe be relevant but I have no clue what and how to interpret. I assume some offloading on that chip is still buggy?
Wed Aug 10 19:34:16 2022 kern.info kernel: [ 46.459861] rtl83xx_l3_nexthop_update: Setting up fwding: ip 192.168.16.1, GW mac 0000020001010010
Wed Aug 10 19:34:16 2022 kern.info kernel: [ 46.470024] Route with id 3 to 192.168.0.0 / 16
Wed Aug 10 19:34:16 2022 kern.info kernel: [ 46.475127] Using packet counter 0
Wed Aug 10 19:43:52 2022 kern.info kernel: [ 77.949502] rtl83xx_l3_nexthop_update: Setting up fwding: ip 192.168.16.1, GW mac 0000020001010010
Wed Aug 10 19:43:52 2022 kern.info kernel: [ 77.959657] Route with id 3 to 192.168.0.0 / 16
Wed Aug 10 19:43:52 2022 kern.info kernel: [ 77.964745] rtl83xx_l3_nexthop_update: total packets: 128
Wed Aug 10 19:44:07 2022 kern.info kernel: [ 92.829857] rtl83xx_l3_nexthop_update: Setting up fwding: ip 192.168.16.1, GW mac 0000020001010010
Wed Aug 10 19:44:07 2022 kern.info kernel: [ 92.840006] Route with id 3 to 192.168.0.0 / 16
Wed Aug 10 19:44:07 2022 kern.info kernel: [ 92.845095] rtl83xx_l3_nexthop_update: total packets: 246
Wed Aug 10 19:44:46 2022 authpriv.info dropbear[3134]: Child connection from fde6:a09a:b373:41::d22f:34530
Wed Aug 10 19:44:47 2022 authpriv.notice dropbear[3134]: Auth succeeded with blank password for 'root' from fde6:a09a:b373:41::d22f:34530
Wed Aug 10 19:46:51 2022 kern.info kernel: [ 257.503554] rtl83xx_fib4_del: found a route with id 1, nh-id 0
Wed Aug 10 19:46:51 2022 kern.err kernel: [ 257.510114] rtl83xx-switch switch@1b000000: unknown nexthop, id 0
Wed Aug 10 19:46:51 2022 kern.err kernel: [ 257.522297] rtl83xx-switch switch@1b000000: unknown nexthop, id 0
Wed Aug 10 19:46:51 2022 kern.info kernel: [ 257.529752] rtl83xx_fib4_del: found a route with id 2, nh-id 0
Wed Aug 10 19:46:51 2022 kern.err kernel: [ 257.536491] rtl83xx-switch switch@1b000000: unknown nexthop, id 0
Wed Aug 10 19:46:51 2022 kern.err kernel: [ 257.544569] rtl83xx_fib4_del: no such gateway: 0.0.0.0
Wed Aug 10 19:46:51 2022 kern.info kernel: [ 257.550350] rtl83xx_fib4_del: found a route with id 3, nh-id 3
Wed Aug 10 19:46:51 2022 kern.err kernel: [ 257.557787] rtl83xx_fib4_del: no such gateway: 192.168.16.1
Workaround #1
: Disable IPv4
Workaround #2
: Set a static DHCPv4 lease with name and proto static
on sw1