network 677 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #### VLAN configuration
  2. config switch
  3. option eth0 "0 1 2 3"
  4. option eth1 "4"
  5. #### Loopback configuration
  6. config interface loopback
  7. option ifname "lo"
  8. option proto static
  9. option ipaddr 127.0.0.1
  10. option netmask 255.0.0.0
  11. #### LAN configuration
  12. config interface lan
  13. option type bridge
  14. option ifname "eth0"
  15. option proto static
  16. option ipaddr 192.168.1.1
  17. option netmask 255.255.255.0
  18. option ip6assign 60
  19. #### WAN configuration
  20. config interface wan
  21. option ifname "eth1"
  22. option proto dhcp
  23. #### WAN6 configuration
  24. config interface wan6
  25. option ifname "eth1"
  26. option proto dhcpv6
  27. #### Network global configuration
  28. config globals globals
  29. option ula_prefix auto