Advertisement
mbazs

OpenWrt /etc/config/network

Mar 13th, 2020
533
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 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 globals 'globals'
  8. option ula_prefix 'fd9e:ded9:ffc5::/48'
  9.  
  10. config interface 'lan'
  11. option type 'bridge'
  12. option ifname 'eth1.1'
  13. option proto 'static'
  14. option netmask '255.255.255.0'
  15. option ip6assign '60'
  16. option ipaddr '192.168.222.1'
  17.  
  18. config interface 'wan'
  19. option ifname 'eth0'
  20. option proto 'dhcp'
  21.  
  22. config interface 'wan6'
  23. option ifname 'eth0'
  24. option proto 'dhcpv6'
  25.  
  26. config switch
  27. option name 'switch0'
  28. option reset '1'
  29. option enable_vlan '1'
  30. option ar8xxx_mib_type '0'
  31. option ar8xxx_mib_poll_interval '500'
  32.  
  33. config switch_vlan
  34. option device 'switch0'
  35. option vlan '1'
  36. option ports '1 2 3 4 0t'
  37.  
  38. config route
  39. option target '0.0.0.0'
  40. option netmask '255.255.255.255'
  41. option interface 'lan'
  42. option gateway '192.168.0.1'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement