Joined: 21 Nov 2010 Posts: 278 Location: North America
Posted: Sun Feb 03, 2013 5:49 Post subject: Re: How to create repeater mode from cli?
Bird333 wrote:
Does anyone know the commands that create repeater mode and repeater bridge?
I recently turned a Repeater Bridge back into a Router using the CLI.
Assume we have two routers, Router A which we plan to use as the Repeater Bridge on the 5GHz band to link up with Router B which is connected to the internet.
Assume Router B has the following relevant properties:
1.) Ip address is 192.168.1.1
2.) SSID is "KittyKats"
3.) Encryption is AES
4.) Security is PSK2
5.) AP Pre-Shared-Key is "HelloKitty"
6.) Channel width on the 5GHz band is set to 40MHz
7.) Network mode is N-only(5Ghz)
8.) Broadcasts on Channel 40
9.) DHCP server grants ip addresses ranging from 192.168.1.100 to 192.168.1.149
On Router A enter the following commands at the CLI:
nvram set lan_ipaddr=192.168.1.2<== Assign a static ip address on the same subnet as Router B nvram set dhcp_dnsmasq=0<== Disable the DHCP server on Router A nvram set wl1_mode=apstawet<== Set AP to Repeater Bridge Mode (wet = Wireless Ethernet Bridging Mode) nvram set wl1_ssid=KittyKats nvram set wl1_crypto=aes nvram set wl1_security_mode=psk2 nvram set wl1_wpa_psk=HelloKitty nvram set wl1_nbw=40<== Set Channel width to 40MHz (nbw = Network Band Width ??) nvram set wl1_channel=40<== Optional - May cause a faster link-up nvram set wl1_net_mode=n5-only nvram commit reboot
wl1 and eth2 are the 5GHz interfaces on most of the newer routers. YMMV
There are other NVRAM variables which I leave to you to explore. Hope you find this useful.
Updated 2-4-2013 : Add comment to nvram set wl1_nbw=40
- Magnetron1.1
Last edited by Magnetron1.1 on Mon Feb 04, 2013 22:46; edited 1 time in total
Posted: Mon Feb 04, 2013 15:41 Post subject: Re: How to create repeater mode from cli?
Magnetron1.1 wrote:
Bird333 wrote:
Does anyone know the commands that create repeater mode and repeater bridge?
I recently turned a Repeater Bridge back into a Router using the CLI.
Assume we have two routers, Router A which we plan to use as the Repeater Bridge on the 5GHz band to link up with Router B which is connected to the internet.
Assume Router B has the following relevant properties:
1.) Ip address is 192.168.1.1
2.) SSID is "KittyKats"
3.) Encryption is AES
4.) Security is PSK2
5.) AP Pre-Shared-Key is "HelloKitty"
6.) Channel width on the 5GHz band is set to 40MHz
7.) Network mode is N-only(5Ghz)
8.) Broadcasts on Channel 40
9.) DHCP server grants ip addresses ranging from 192.168.1.100 to 192.168.1.149
On Router A enter the following commands at the CLI:
nvram set lan_ipaddr=192.168.1.2<== Assign a static ip address on the same subnet as Router B nvram set dhcp_dnsmasq=0<== Disable the DHCP server on Router A nvram set wl1_mode=apstawet<== Set AP to Repeater Bridge Mode (wet = Wireless Ethernet Bridging Mode) nvram set wl1_ssid=KittyKats nvram set wl1_crypto=aes nvram set wl1_security_mode=psk2 nvram set wl1_wpa_psk=HelloKitty nvram set wl1_nbw=40 nvram set wl1_channel=40<== Optional - May cause a faster link-up nvram set wl1_net_mode=n5-only nvram commit reboot
wl1 and eth2 are the 5GHz interfaces on most of the newer routers. YMMV
There are other NVRAM variables which I leave to you to explore. Hope you find this useful.
- Magnetron1.1
Thanks for the response. What does nbw=40 do? What command is necessary for creating a virtual wireless interface?
nvram set wl0.1_akm=psk2 nvram set wl0.1_wl0.1_crypto=aes nvram set wl0.1_ifname=wl0.1 nvram set wl0.1_bss_maxassoc=128 nvram set wl0.1_authmode=open nvram set wl0.1_auth_mode=none nvram set wl0.1_ssid=DoggieDogs nvram set wl0.1_wpa_psk=HelloDoggie nvram set wl0_vifs=wl0.1 nvram commit reboot
There are other NVRAM variables also affecting VAPs; I'll leave them for you to discover.