Advertisement
Dremalka

network

Nov 18th, 2013
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. config interface 'loopback'
  2. option ifname 'lo'
  3. option proto 'static'
  4. option ipaddr '127.0.0.1'
  5. option netmask '255.0.0.0'
  6.  
  7. config interface 'lan'
  8. option ifname 'eth0.1'
  9. option type 'bridge'
  10. option proto 'static'
  11. option netmask '255.255.255.0'
  12. option ipaddr '10.10.10.1'
  13. option gateway '10.10.10.1'
  14.  
  15. config interface 'wan'
  16. option ifname 'eth0.2'
  17. option proto 'dhcp'
  18.  
  19. config switch
  20. option name 'eth0'
  21. option reset '1'
  22. option enable_vlan '1'
  23.  
  24. config switch_vlan
  25. option device 'eth0'
  26. option vlan '1'
  27. option ports '0t 2 3 4 5'
  28.  
  29. config switch_vlan
  30. option device 'eth0'
  31. option vlan '2'
  32. option ports '0t 1'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement