Advertisement
Guest User

Untitled

a guest
Feb 25th, 2020
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. package 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 globals 'globals'
  10. option ula_prefix 'fd9a:7464:e157::/48'
  11.  
  12. config interface 'lan'
  13. option type 'bridge'
  14. option ifname 'eth0.1'
  15. option proto 'static'
  16. option netmask '255.255.255.0'
  17. option ip6assign '60'
  18. option gateway '192.168.178.2'
  19. option ipaddr '192.168.178.3'
  20. list dns '8.8.8.8'
  21. list dns '8.8.4.4'
  22.  
  23. config interface 'wan'
  24. option ifname 'eth0.2'
  25. option proto 'static'
  26. option netmask '255.255.255.0'
  27. option broadcast '192.168.178.255'
  28. option ipaddr '192.168.178.3'
  29. option gateway '192.168.178.2'
  30.  
  31. config device 'wan_eth0_2_dev'
  32. option name 'eth0.2'
  33. option macaddr '14:cc:20:92:08:16'
  34.  
  35. config switch
  36. option name 'switch0'
  37. option reset '1'
  38. option enable_vlan '1'
  39.  
  40. config switch_vlan
  41. option device 'switch0'
  42. option vlan '1'
  43. option ports '2 3 4 5 0t'
  44.  
  45. config switch_vlan
  46. option device 'switch0'
  47. option vlan '2'
  48. option ports '1 0t'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement