network 991 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # Copyright (C) 2006 OpenWrt.org
  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. config interface lan
  8. option type bridge
  9. option ifname "eth0 eth1 eth0.1 eth0.2"
  10. option proto static
  11. option ipaddr 192.168.1.1
  12. option netmask 255.255.255.0
  13. option nat 1
  14. option ip6assign 60
  15. config interface wan6
  16. option ifname @wan
  17. option proto dhcpv6
  18. config globals globals
  19. option ula_prefix auto
  20. ## Example for ATM bridging.
  21. ## Useful for PPPoE or IP over ATM. Will create 'nas${unit}'
  22. #
  23. # config atm-bridge
  24. # option unit 0
  25. # option encaps llc
  26. # option vpi 8
  27. # option vci 35
  28. # option payload bridged # some ISPs need this set to 'routed'
  29. # config interface wan
  30. ## PPPoE:
  31. # option ifname nas0
  32. # option proto pppoe
  33. ## PPPoA:
  34. # option ifname atm0
  35. # option proto pppoa
  36. # option encaps llc
  37. # option vpi 8
  38. # option vci 35
  39. ## Both:
  40. # option username "my_username"
  41. # option password "my_password"