Advertisement
Guest User

Untitled

a guest
Oct 28th, 2020
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. cat /etc/config/network
  2.  
  3. config interface 'loopback'
  4. option ifname 'lo'
  5. option proto 'static'
  6. option ipaddr '127.0.0.1'
  7. option netmask '255.0.0.0'
  8.  
  9. config interface 'pub'
  10. option type 'bridge'
  11. option proto 'static'
  12. option ifname 'eth0.100'
  13. option ipaddr '10.11.9.1'
  14. option netmask '255.255.255.128'
  15. option ip6assign '64'
  16.  
  17. config interface 'wan'
  18. option ifname 'eth0.2'
  19. option proto 'dhcp'
  20. option dns 4.2.2.2
  21.  
  22. config device 'wan_dev'
  23. option name 'eth0.2'
  24. option macaddr 'b4:fb:e4:xx:xx:xx'
  25.  
  26. config interface 'wan6'
  27. option proto 'dhcpv6'
  28. option ifname '@wan'
  29. option reqprefix '60'
  30.  
  31. config switch
  32. option name 'switch0'
  33. option reset '1'
  34. option enable_vlan '1'
  35.  
  36. config switch_vlan
  37. option device 'switch0'
  38. option vlan '100'
  39. option ports '1t 2t 3t 4 6t'
  40.  
  41. config switch_vlan
  42. option device 'switch0'
  43. option vlan '2'
  44. option ports '0 6t'
  45.  
  46. config interface 'ptp'
  47. option ifname 'ptp'
  48. option proto 'none'
  49.  
  50. config switch_vlan
  51. option device 'switch0'
  52. option vlan '300'
  53. option ports '1 2 3 6t'
  54.  
  55. config switch_vlan
  56. option device 'switch0'
  57. option vlan '200'
  58. option ports '1t 2t 3t 6t'
  59.  
  60. config interface 'priv'
  61. option ifname 'eth0.200'
  62. option type 'bridge'
  63. option proto 'static'
  64. option ipaddr '192.168.11.1'
  65. option netmask '255.255.255.0'
  66. option ip6assign '64'
  67.  
  68. config interface 'man'
  69. option ifname 'eth0.300'
  70. option type 'bridge'
  71. option proto 'static'
  72. option ipaddr '172.16.11.1'
  73. option netmask '255.255.255.0'
  74. option ip6assign '64'
  75.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement