Saturday, March 28, 2009

OpenWRT on the NanoStation 2 : Part 2

On Thursday I posted the first part of installing OpenWRT on a Ubiquiti NanoStation 2. Now I will be showing how to configure the unit with a Master and adhoc VAP With OLSRD running on the adhoc VAP. I found it was easier to configure the NS2 via the CLI than the Web Interface, but that is my preference.

root@OpenWrt:~# cat /etc/config/wireless

config 'wifi-device' 'wifi0'
option 'type' 'atheros'
option 'maxassoc' ''
option 'distance' ''
option 'diversity' ''
option 'txantenna' ''
option 'rxantenna' ''
option 'disabled' '0'
option 'antenna' 'external'
option 'country' '0'
option 'channel' '01'
option 'hwmode' '11bg'

config 'wifi-iface'
option 'device' 'wifi0'
option 'encryption' 'none'
option 'bssid' ''
option 'server' ''
option 'port' ''
option 'hidden' '0'
option 'isolate' '0'
option 'bgscan' '0'
option 'frag' ''
option 'rts' ''
option 'wds' '0'
option 'key1' ''
option 'key2' ''
option 'key3' ''
option 'key4' ''
option '80211h' ''
option 'compression' ''
option 'bursting' ''
option 'ff' ''
option 'wmm' ''
option 'xr' ''
option 'ar' ''
option 'turbo' ''
option 'macpolicy' 'none'
option 'maclist' ''
option 'ssid' '****06'
option 'mode' 'ap'
option 'txpower' '16'
option 'network' 'lan'

config 'wifi-iface'
option 'device' 'wifi0'
option 'hidden' '0'
option 'encryption' 'none'
option 'ssid' '****mesh'
option 'bssid' ''
option 'mode' 'adhoc'
option 'server' ''
option 'port' ''
option 'isolate' '0'
option 'bgscan' '0'
option 'frag' ''
option 'rts' ''
option 'wds' '0'
option 'key1' ''
option 'key2' ''
option 'key3' ''
option 'key4' ''
option '80211h' ''
option 'compression' ''
option 'bursting' ''
option 'ff' ''
option 'wmm' ''
option 'xr' ''
option 'ar' ''
option 'turbo' ''
option 'macpolicy' 'none'
option 'maclist' ''
option 'txpower' '16'
option 'network' 'ath1'


root@OpenWrt:~# cat /etc/config/network

config 'interface' 'loopback'
option 'ifname' 'lo'
option 'proto' 'static'
option 'ipaddr' '127.0.0.1'
option 'netmask' '255.0.0.0'

config 'interface' 'lan'
option 'proto' 'static'
option 'macaddr' ''
option 'ip6addr' ''
option 'netmask' '255.255.255.0'
option 'gateway' ''
option 'ip6gw' ''
option 'dns' ''
option 'ifname' 'eth0'
option 'ipaddr' '10.0.5.1'
option 'type' 'bridge'

config 'interface' 'ath1'
option 'macaddr' ''
option 'ip6addr' ''
option 'gateway' ''
option 'ip6gw' ''
option 'dns' ''
option 'proto' 'static'
option 'ipaddr' '10.0.0.6'
option 'netmask' '255.255.255.0'

root@OpenWrt:~# cat /etc/config/dhcp

config 'dnsmasq'
option 'domainneeded' '1'
option 'boguspriv' '1'
option 'filterwin2k' '0'
option 'localise_queries' '1'
option 'local' '/lan/'
option 'domain' 'lan'
option 'expandhosts' '1'
option 'nonegcache' '0'
option 'authoritative' '1'
option 'readethers' '1'
option 'leasefile' '/tmp/dhcp.leases'
option 'resolvfile' '/tmp/resolv.conf.auto'

config 'dhcp' 'lan'
option 'interface' 'lan'
option 'start' '100'
option 'limit' '150'
option 'leasetime' '720m'
option 'ignore' '0'

config 'dhcp' 'wan'
option 'interface' 'wan'
option 'ignore' '1'
option 'start' ''
option 'limit' ''
option 'leasetime' ''

config 'dhcp'
option 'interface' 'ath1'
option 'ignore' '0'
option 'start' '100'
option 'limit' '100'
option 'leasetime' '400m'




Next time I will explain how I installed OLSRD and configured it

No comments:

Post a Comment