Assign WAN to LAN port

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Author Message
kjreuter
DD-WRT Novice


Joined: 18 Aug 2018
Posts: 4

PostPosted: Sat Aug 18, 2018 20:15    Post subject: Assign WAN to LAN port Reply with quote
I am running a Netgear Nighthawk R7000 router with firmware DD-WRT v3.0-r36070M kongac (05/31/18). The WAN port has stopped working so I would like to convert one of the LAN ports to handle WAN connectivity, but have not been able to successfully effect the change.

I went into Setup>VLANs, unchecked port 1 on vlan1 and checked vlan2 for port 1 (see the attached screenshot). The port shows as green/connected, but the router does not connect to my cable modem and pull an IP address. Then I tried unchecking auto-negotiate, gigabit, full speed, and full duplex as they are not checked for the default WAN port to no avail. I also checked the nvram and noticed that the vlan1ports and vlan2ports settings did not reflect the updates in the GUI. I tried setting them (vlan1ports=2 3 4 5* and vlan2ports=0 1 5u) also with no impact.

What configuration change(s) do I need to make?



Clip.png
 Description:
 Filesize:  18.54 KB
 Viewed:  11199 Time(s)

Clip.png


Sponsor
Per Yngve Berg
DD-WRT Guru


Joined: 13 Aug 2013
Posts: 6868
Location: Romerike, Norway

PostPosted: Sun Aug 19, 2018 8:37    Post subject: Reply with quote
You din't take out the old wan port (0) from vlan2.

nvram set vlan2ports="1 5u"
nvram commit
kjreuter
DD-WRT Novice


Joined: 18 Aug 2018
Posts: 4

PostPosted: Sun Aug 19, 2018 18:22    Post subject: Reply with quote
I was finally able to get this working on lan4 (I expect the same steps would work on any port, but while verifying port numbering [I read an article that indicated the number ordering may be reversed depending on the router model], I made the switch and have not gone back).

The solution was setting the vlan ports in both the GUI and the CLI:

Log in to the router's control panel (website), Setup>VLANs, uncheck port 4 on vlan1 and check port 4 on vlan2 (see the attached screenshot), Save, and Apply Settings

SSH/telnet into the router and run the following commands:
nvram set vlan1ports="1 2 3 5"
nvram set vlan2ports="0 4 5u"
nvram commit
reboot

After which I had to reboot my cable modem, wait for it to come back online, and then reboot the router again before it would pull an IP address from my ISP.



clip2.png
 Description:
 Filesize:  16.67 KB
 Viewed:  11168 Time(s)

clip2.png


eugene1973
DD-WRT User


Joined: 21 May 2017
Posts: 186

PostPosted: Thu Aug 23, 2018 21:44    Post subject: Reply with quote
If you are going to do that then would it be wise to have no vlan tagging on the wan port at all. I'm asking because I want to know results. I'm doing this because I have it connected to a gateway. Any reply would be great.
kjreuter
DD-WRT Novice


Joined: 18 Aug 2018
Posts: 4

PostPosted: Sat Sep 01, 2018 16:24    Post subject: Reply with quote
I think what you suggest makes sense so that the UI indicates the actual configuration in place. However, when I played around with unchecking the WAN port (as well as disabling the WAN port altogether and removing it from vlan2 in nvram), I lost internet connectivity.
eugene1973
DD-WRT User


Joined: 21 May 2017
Posts: 186

PostPosted: Sun Sep 02, 2018 6:52    Post subject: Reply with quote
Check list....

1. WAN Setup -> WAN Connection Type -> Connection Type = Disabled

2. WAN Port -> Assign WAN Port to Switch = Checked

3. Operating mode = Router
(This might be why it works for me,
I'm using this in AP mode)

4. Check this... Should be like this.
vlan1ports=1 2 3 4 5
vlan2ports=0 5u

5. Finally check your vlan tagging in gui.
eugene1973
DD-WRT User


Joined: 21 May 2017
Posts: 186

PostPosted: Sun Sep 02, 2018 7:09    Post subject: Reply with quote
If you have a bad port on the device. The device may be no good. If it's the leads on the port then you are ok. Better make sure.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions 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