Hello,
I've just flashed an Ubiquiti U6 Lite AP with openwrt OpenWrt 22.03.2 r19803-9a599fee93. I'm confused by the default configuration.
root@OpenWrt:~# cat /etc/config/network
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option packet_steering '1'
option ula_prefix 'fd41:819f:c9ac::/48'
config device
option name 'br-lan'
option type 'bridge'
list ports 'lan'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option ip6assign '60'
My first question. For br-lan, list ports = 'lan'. Does this refer interface 'lan'? That seems circular to me, since interface 'lan' lists 'br-lan' as its device.
Next, I can't follow all the linux setup here (I removed loopback and wlans, not relevant for now):
root@OpenWrt:~# ip addr
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1504 qdisc fq_codel state UP qlen 1000
link/ether 24:5a:4c:1c:c5:3c brd ff:ff:ff:ff:ff:ff
inet6 fe80::265a:4cff:fe1c:c53c/64 scope link
valid_lft forever preferred_lft forever
3: lan@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-lan state UP qlen 1000
link/ether 24:5a:4c:1c:c5:3c brd ff:ff:ff:ff:ff:ff
6: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
link/ether 24:5a:4c:1c:c5:3c brd ff:ff:ff:ff:ff:ff
inet 192.168.1.1/24 brd 192.168.1.255 scope global br-lan
valid_lft forever preferred_lft forever
inet6 fd41:819f:c9ac::1/60 scope global noprefixroute
valid_lft forever preferred_lft forever
inet6 fe80::265a:4cff:fe1c:c53c/64 scope link
valid_lft forever preferred_lft forever
I'm not familiar with syntax "lan@eth0". It has the same MAC as eth0. Does the kernel create this thing, or does OpenWrt set it up somehow?
I see eth0 has MTU 1504. Are the extra 4 bytes for VLAN tags?
Finally, this is a single port device. Does it have some kind of internal "switch"? Is it DSA-style? I've struggled searching to find similar configurations.
Apologies if these are basic questions, I'm still learning modern OpenWrt config (I haven't run it in a while).
Thanks,
Colin