I have ASUS TUF-AX4200 and I'd like to have a separate network (DHCP, NAT) on LAN4. How do I do this?
"kernel": "5.15.137",
"hostname": "p",
"system": "ARMv8 Processor rev 4",
"model": "ASUS TUF-AX4200",
"board_name": "asus,tuf-ax4200",
"rootfs_type": "squashfs",
"release": {
"distribution": "OpenWrt",
"version": "23.05.2",
"revision": "r23630-842932a63d",
"target": "mediatek/filogic",
"description": "OpenWrt 23.05.2 r23630-842932a63d"
}
ls -l /sys/class/net
lrwxrwxrwx 1 root root 0 Aug 5 23:44 br-lan -> ../../devices/virtual/net/br-lan/
lrwxrwxrwx 1 root root 0 Jan 1 1970 eth0 -> ../../devices/platform/soc/15100000.ethernet/net/eth0/
lrwxrwxrwx 1 root root 0 Jan 1 1970 eth1 -> ../../devices/platform/soc/15100000.ethernet/net/eth1/
lrwxrwxrwx 1 root root 0 Jan 1 1970 lan1 -> ../../devices/platform/soc/15100000.ethernet/mdio_bus/mdio-bus/mdio-bus:1f/net/lan1/
lrwxrwxrwx 1 root root 0 Jan 1 1970 lan2
...
lan3
lan4
It seems that https://openwrt.org/docs/guide-user/network/vlan/switch_configuration is a bit outdated.
config device
option name 'br-lan'
option type 'bridge'
list ports 'lan1'
list ports 'lan2'
list ports 'lan3'
list ports 'lan4'