Advertisement
xxorza

cat /etc/config/network

Sep 7th, 2019
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. root@OpenWrt:~# cat /etc/config/network
  2.  
  3. config interface 'loopback'
  4. option ifname 'lo'
  5. option proto 'static'
  6. option ipaddr '127.0.0.1'
  7. option netmask '255.0.0.0'
  8.  
  9. config globals 'globals'
  10. option ula_prefix 'fd55:f0a5:8ae9::/48'
  11.  
  12. config interface 'lan'
  13. option type 'bridge'
  14. option ifname 'eth0.1'
  15. option proto 'static'
  16. option ipaddr '192.168.1.1'
  17. option netmask '255.255.255.0'
  18. option ip6assign '60'
  19.  
  20. config interface 'wan'
  21. option ifname 'eth1.2'
  22. option proto 'dhcp'
  23. option peerdns '0'
  24. option dns '192.168.1.3'
  25. option clientid 'openwrt'
  26. option broadcast '1'
  27.  
  28. config interface 'wan6'
  29. option ifname 'eth1.2'
  30. option proto 'dhcpv6'
  31.  
  32. config switch
  33. option name 'switch0'
  34. option reset '1'
  35. option enable_vlan '1'
  36.  
  37. config switch_vlan
  38. option device 'switch0'
  39. option vlan '1'
  40. option ports '0 1 2 3 5t'
  41.  
  42. config switch_vlan
  43. option device 'switch0'
  44. option vlan '2'
  45. option ports '4 6t'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement