Advertisement
Guest User

OpenWRT WAN port configuration

a guest
Feb 10th, 2013
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 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 type 'bridge'
  9. option proto 'static'
  10. option ipaddr '192.168.1.1'
  11. option netmask '255.255.255.0'
  12. option ifname 'eth0.1'
  13. option dns '8.8.8.8 8.8.4.4'
  14.  
  15. config switch
  16. option name 'eth0'
  17. option reset '1'
  18. option enable_vlan '1'
  19.  
  20. config switch_vlan
  21. option device 'eth0'
  22. option vlan '1'
  23. option vid '1'
  24. option ports '2 3 4 5t'
  25.  
  26. config switch_vlan
  27. option device 'eth0'
  28. option vlan '2'
  29. option vid '2'
  30. option ports '1 5t'
  31.  
  32. config interface 'wan'
  33. option proto 'dhcp'
  34. option ifname 'eth0.2'
  35. option peerdns '0'
  36. option dns '8.8.8.8 8.8.4.4'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement