95-network.sh 691 B

123456789101112131415161718192021222324
  1. # -- Set up Networking configuration
  2. uci set network.lan.type='bridge'
  3. uci set network.lan.proto='static'
  4. uci set network.lan.ipaddr='172.16.42.1'
  5. uci set network.lan.netmask='255.255.255.0'
  6. uci set network.lan.gateway='172.16.42.42'
  7. uci set network.lan.dns='8.8.8.8, 8.8.4.4'
  8. uci set network.usb=interface
  9. uci set network.usb.ifname='usb0'
  10. uci set network.usb.proto='dhcp'
  11. uci set network.usb.dns='8.8.8.8, 8.8.4.4'
  12. uci set network.wwan=interface
  13. uci set network.wwan.proto='dhcp'
  14. uci set network.wwan.dns='8.8.8.8, 8.8.4.4'
  15. uci set network.wan.proto='dhcp'
  16. uci set network.wan.dns='8.8.8.8, 8.8.4.4'
  17. uci set network.wan6.proto='dhcpv6'
  18. uci commit network
  19. exit 0