Advertisement
Guest User

network config

a guest
Jan 21st, 2017
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1.  
  2. config interface 'loopback'
  3. option ifname 'lo'
  4. option proto 'static'
  5. option ipaddr '127.0.0.1'
  6. option netmask '255.0.0.0'
  7.  
  8. config globals 'globals'
  9. option ula_prefix 'fda0:77ff:8d5b::/48'
  10.  
  11. config interface 'lan'
  12. option ifname 'eth0'
  13. option force_link '1'
  14. option type 'bridge'
  15. option proto 'static'
  16. option netmask '255.255.255.0'
  17. option ip6assign '60'
  18. option ipaddr '192.168.2.1'
  19. option dns '8.8.8.8 8.8.4.4'
  20.  
  21. config interface 'wan'
  22. option ifname 'eth1'
  23. option proto 'dhcp'
  24.  
  25. config interface 'wan6'
  26. option ifname 'eth1'
  27. option proto 'dhcpv6'
  28.  
  29. config switch
  30. option name 'switch0'
  31. option reset '1'
  32. option enable_vlan '1'
  33.  
  34. config switch_vlan
  35. option device 'switch0'
  36. option vlan '1'
  37. option ports '0 1 2 3 5'
  38.  
  39. config switch_vlan
  40. option device 'switch0'
  41. option vlan '2'
  42. option ports '4 6'
  43.  
  44. config interface 'vpn0'
  45. option ifname 'tun0'
  46. option proto 'none'
  47. option auto '1'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement