JW0914

OpenWrt /etc/config/network

Mar 16th, 2021 (edited)
12
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.09 KB | None | 0 0
  1. #===========================================================
  2.               ##----- Virtual Switches -----##
  3. #===========================================================
  4.  
  5.     # vSwitches #
  6. #-----------------------------------------------------------
  7.  
  8.   # Switch 0:
  9. config switch
  10.     option  name            'switch0'
  11.     option  enable_vlan     1
  12.     option  reset           1
  13.  
  14.     # vLANs #
  15. #-----------------------------------------------------------
  16.  
  17.   # 1: LAN
  18. config switch_vlan
  19.     option  device          'switch0'
  20.     option  vlan            1
  21.     option  vid             1
  22.     option  ports           '0 5t'
  23.                             # 0 is LAN 4
  24.                             # 5t is the CPU LAN ethernet interface
  25.   # 2: WAN
  26. config switch_vlan
  27.     option  device          'switch0'
  28.     option  vlan            2
  29.     option  vid             2
  30.     option  ports           '1 2 3 4 6t'
  31.                             # 1 - 3 are LAN 3 - 1
  32.                             # 4 is the dedicated WAN port on the router
  33.                             # 6t is the CPU WAN ethernet interface
  34.  
Advertisement
Add Comment
Please, Sign In to add comment