Advertisement
Guest User

Untitled

a guest
Jan 12th, 2017
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. #################### Setup PPPoE ####################
  2.  
  3. uci set network.wan.proto='pppoe'
  4. uci set network.wan.username='admin'
  5. uci set network.wan.password='admin'
  6. uci set network.lan.ipaddr='10.0.1.1'
  7. uci set network.wan.dns='8.8.8.8 8.8.4.4'
  8.  
  9. #################### Wireless ####################
  10.  
  11. uci set wireless.radio0.disabled='0'
  12. uci set wireless.radio0.htmode='HT40-'
  13. uci set wireless.radio0.hwmode='11n'
  14. uci set wireless.radio0.noscan='1'
  15. uci set wireless.@wifi-iface[0].ssid='WiFi'
  16. uci set wireless.@wifi-iface[0].encryption='psk2'
  17. uci set wireless.@wifi-iface[0].key="admin1234"
  18.  
  19. #################### System ####################
  20.  
  21. uci set system.@system[0].hostname='tl-mr3420'
  22. uci set system.@system[0].timezone='BDT-6'
  23.  
  24. #################### Disable IPv6 ####################
  25.  
  26. sed -i '/net.ipv6.conf.all.forwarding=1/a net.ipv6.conf.all.disable_ipv6=1' /etc/sysctl.conf
  27. uci delete dhcp.lan.ra
  28. uci delete dhcp.lan.dhcpv6
  29. uci set firewall.@defaults[0].disable_ipv6=1
  30.  
  31. #################### DHCP Entries ####################
  32. uci add dhcp host
  33. uci set dhcp.@host[-1].name='desktop'
  34. uci set dhcp.@host[-1].ip='192.168.1.100'
  35. uci set dhcp.@host[-1].mac='aa:bb:cc:dd:ee:ff'
  36.  
  37. uci add dhcp host
  38. uci set dhcp.@host[-1].name='phone'
  39. uci set dhcp.@host[-1].ip='192.168.1.101'
  40. uci set dhcp.@host[-1].mac='aa:bb:cc:dd:ee:ff'
  41.  
  42. uci add dhcp host
  43. uci set dhcp.@host[-1].name='macbookair'
  44. uci set dhcp.@host[-1].ip='192.168.1.102'
  45. uci set dhcp.@host[-1].mac='aa:bb:cc:dd:ee:ff'
  46.  
  47. uci commit
  48. rm /etc/banner*
  49. reboot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement