Setup procedure for OpenWRT-based Wireless Access Point

TP-LINK Archer C7 AC1750

/etc/init.d/autossh disable
/etc/init.d/dnsmasq disable
/etc/init.d/odhcpd disable

rm /etc/modules.d/ppp /etc/modules.d/pppoe

sed -i -e "s/config dhcp 'lan'/config dhcp 'lan'\n\toption ignore '1'/g" /etc/config/dhcp

sed -i -e "s/option ipaddr '192.168.1.1'/option ipaddr '192.168.48.2'/g" /etc/config/network
sed -i -e "s/option netmask '255.255.255.0'/option netmask '255.255.255.0'\n\toption gateway '192.168.48.1'\n\toption dns '192.168.48.1'\n\toption dns_search 'tom.lcl'/g" /etc/config/network
sed -i -e "s/option ifname 'eth1'/option ifname 'eth1 eth0'/g" /etc/config/network
sed -i -e "s/option ifname 'eth0'/#option ifname 'eth0'/g" /etc/config/network # does both wan and wan6
sed -i -e "s/option proto 'dhcp'/#option proto 'dhcp'\n\toption proto 'none'/g" /etc/config/network
sed -i -e "s/option proto 'dhcpv6'/#option proto 'dhcpv6'/g" /etc/config/network
sed -i -e "s/config interface 'wan6'/#config interface 'wan6'/g" /etc/config/network

sed -i -e "s/list   network\t\t'wan6'/#list   network\t\t'wan6'/g" /etc/config/firewall


# edit /etc/config/wireless

# radio0 (5.8 GHz):
# channel 40
# htmode VHT80
# country US
# remove comment and change disabled to 0
# ssid tom-5.8
# encryption psk2
# key *PASSWORD*

# radio1 (2.4 GHz):
# channel 2
# htmode VHT20
# country US
# remove comment and change disabled to 0
# ssid tom-2.4
# encryption psk2
# key **PASSWORD**


sed -i -e "s/option hostname 'OpenWrt'/option hostname 'tom-wap'/g" /etc/config/system
sed -i -e "s|option timezone 'UTC'|option zonename 'America/Chicago'\n\toption timezone 'CST6CDT,M3.2.0,M11.1.0'|g" /etc/config/system

echo '192.168.48.2 tom-wap wap' >> /etc/hosts

passwd
computer/openwrt_wap_setup.txt · Last modified: 2016/02/23 01:59 by tdobes
Recent changes RSS feed Driven by DokuWiki Valid XHTML 1.0 Valid CSS