Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #################### Setup PPPoE ####################
- uci set network.wan.proto='pppoe'
- uci set network.wan.username='admin'
- uci set network.wan.password='admin'
- uci set network.lan.ipaddr='10.0.1.1'
- uci set network.wan.dns='8.8.8.8 8.8.4.4'
- #################### Wireless ####################
- uci set wireless.radio0.disabled='0'
- uci set wireless.radio0.htmode='HT40-'
- uci set wireless.radio0.hwmode='11n'
- uci set wireless.radio0.noscan='1'
- uci set wireless.@wifi-iface[0].ssid='WiFi'
- uci set wireless.@wifi-iface[0].encryption='psk2'
- uci set wireless.@wifi-iface[0].key="admin1234"
- #################### System ####################
- uci set system.@system[0].hostname='tl-mr3420'
- uci set system.@system[0].timezone='BDT-6'
- #################### Disable IPv6 ####################
- sed -i '/net.ipv6.conf.all.forwarding=1/a net.ipv6.conf.all.disable_ipv6=1' /etc/sysctl.conf
- uci delete dhcp.lan.ra
- uci delete dhcp.lan.dhcpv6
- uci set firewall.@defaults[0].disable_ipv6=1
- #################### DHCP Entries ####################
- uci add dhcp host
- uci set dhcp.@host[-1].name='desktop'
- uci set dhcp.@host[-1].ip='192.168.1.100'
- uci set dhcp.@host[-1].mac='aa:bb:cc:dd:ee:ff'
- uci add dhcp host
- uci set dhcp.@host[-1].name='phone'
- uci set dhcp.@host[-1].ip='192.168.1.101'
- uci set dhcp.@host[-1].mac='aa:bb:cc:dd:ee:ff'
- uci add dhcp host
- uci set dhcp.@host[-1].name='macbookair'
- uci set dhcp.@host[-1].ip='192.168.1.102'
- uci set dhcp.@host[-1].mac='aa:bb:cc:dd:ee:ff'
- uci commit
- rm /etc/banner*
- reboot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement