openwrt vlan.txt 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. https://forum.archive.openwrt.org/viewtopic.php?id=65671
  2. By adding the following snippet to /etc/config/network and rebooting the router, the Switch config tab will be available in Luci:
  3. config switch
  4. option name 'switch0'
  5. option reset '1'
  6. option enable_vlan '1'
  7. config switch_vlan
  8. option device 'switch0'
  9. option vlan '1'
  10. option ports '0 1 2 3 6'
  11. config switch_vlan
  12. option device 'switch0'
  13. option vlan '2'
  14. option ports '4 5'
  15. Thanks sera, that did the trick!
  16. I added your config to /etc/config/network and the Switch tab appeared in LuCI, also the router was not hanging anymore.
  17. I figured the port mapping is as follows for the ACS:
  18. Port0 - LAN Port 4
  19. Port1 - LAN Port 3
  20. Port2 - LAN Port 2
  21. Port3 - LAN Port 1
  22. Port4 - WAN
  23. Port5 - CPU [WAN]
  24. Port6 - CPU [LAN] - thanks sera!
  25. I wanted to map my WAN interface to VLAN10, so I simply did the following:
  26. Network -> Switch -> Add -> VLAN ID: 10, Port 4: tagged, CPU: tagged, Rest: off
  27. Network -> Interfaces -> WAN -> Physical Settings -> Bridge interfaces: select eth0 and eth0.10
  28. That's all. Finally my ACS was able to pick its IP via DHCP from my ISP's ONT (Optical Network Terminal).