How to create repeater mode from cli?

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
Bird333
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 809

PostPosted: Fri Feb 01, 2013 15:33    Post subject: How to create repeater mode from cli? Reply with quote
Does anyone know the commands that create repeater mode and repeater bridge?
Sponsor
Magnetron1.1
DD-WRT User


Joined: 21 Nov 2010
Posts: 278
Location: North America

PostPosted: Sun Feb 03, 2013 5:49    Post subject: Re: How to create repeater mode from cli? Reply with quote
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
Bird333
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 809

PostPosted: Mon Feb 04, 2013 15:41    Post subject: Re: How to create repeater mode from cli? Reply with quote
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?
Magnetron1.1
DD-WRT User


Joined: 21 Nov 2010
Posts: 278
Location: North America

PostPosted: Mon Feb 04, 2013 23:00    Post subject: Re: How to create repeater mode from cli? Reply with quote
Bird333 wrote:
Thanks for the response. What does nbw=40 do?

Sets the channel width to 40MHz. (Updated my first post.)

Bird333 wrote:
What command is necessary for creating a virtual wireless interface?

Sorry - Haven't had the opportunity to investigate this - yet.
To get a listing of possible variables enter nvram show|grep wl|sort

- Magnetron1.1
Magnetron1.1
DD-WRT User


Joined: 21 Nov 2010
Posts: 278
Location: North America

PostPosted: Wed Feb 06, 2013 0:53    Post subject: Create a VAP using the CLI Reply with quote
Create a VAP on the 2.4GHz Wi-Fi band with the following characteristics:

1.)AES encryption
2.)PSK2 security mode
3.)SSID DoggieDogs
4.)Pre-Shared-Key HelloDoggie

VAP settings:

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.


- Magnetron1.1
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum