Posted: Thu May 25, 2017 4:41 Post subject: Linksys E900 lan to wan convertion
Hi,
I have a linksys E900. Recently due to power surge the WAN port is not working. Rest of the Lan port is working. I have installed dd-wrt on the same.
Is it possible to convert one of the LAN port as WAN port ?? If yes can you please provide the steps.
Posted: Thu Apr 26, 2018 15:40 Post subject: Moving LAN port to WAN port
Per Yngve Berg wrote:
nvram set vlan2ports="1 5"
nvram set vlan0ports="2 3 4 5*"
nvram set vlan1ports="2 3 4 5*"
nvram commit
reboot
Your wan is now on port 1 or 4
I don't know why you have both vlan 1 and 0.
Hi,
Recently I'm facing same problem. My router's WAN port has gone bad may be due to power surge. However, the LAN ports and WiFi work. So, I thought I can easily configure one of the LAN port to behave as WAN port but its not happening. My routers configuration(when rest to default) is as below
Posted: Thu Apr 26, 2018 17:48 Post subject: Re: Moving LAN port to WAN port
prakashp wrote:
I thought I can easily configure one of the LAN port to behave as WAN port but its not happening. My routers configuration(when rest to default) is as below
Is this an E900? Or what model/version/build is it? Those don't look like defaults; did you reset with the GUI, button, or `erase nvram`? From telnet/ssh, do a `strings /dev/mtd0|grep vlan` to check the defaults.
Based on what I know (little) on this stuff, you just need to move one of the vlan1 ports (lan) into vlan2 (wan). Either 0 or 3, depending on which physical port you want, and whether the physical:virtual port mapping is direct or reversed. E.g.:
vlan2ports=3 4 5
vlan1ports=0 1 2 5*
And I guess make vlan0ports same as vlan1ports, or don't touch it...? _________________ #NAT/SFE/CTF: limited speed w/ DD#Repeater issues#DD-WRT info: FAQ, Builds, Types, Modes, Changes, Demo#
OPNsense x64 5050e ITX|DD: DIR-810L, 2*EA6900@1GHz, R6300v1, RT-N66U@663, WNDR4000@533, E1500@353,
WRT54G{Lv1.1,Sv6}@250|FreshTomato: F7D8302@532|OpenWRT: F9K1119v1, RT-ACRH13, R6220, WNDR3700v4
Posted: Thu Apr 26, 2018 18:55 Post subject: Moving LAN port to WAN port
Hi,
Thanks for the reply. Yes its a E900, may be a different variant. I have done the reset using reset button. I have installed "dd-wrt.v24-21061_NEWD-2_K2.6_mini-e900.bin" initially and then did and upgrade to "dd-wrt.v24-21061_NEWD-2_K2.6_big-nv64k.bin". I have tried your suggestion of moving one port from vlan1 to valn2 but it did not work. I don't see PPPoE getting IP from ISP. When I manually click on connect under GUI status menu, the router goes for reboot. May be there is something else is happening or its a time for me to buy new router
Router Model: Linksys E900
Firmware Version: DD-WRT v24-sp2 (03/25/13) big - build 21061
Kernel Version: Linux 2.6.24.111 #14332 Mon Mar 25 04:15:31 CET 2013 mips
CPU Model: Broadcom BCMD144 chip rev 1
root@DD-WRT:~# nvram show | grep model
boot_hw_model=E900
size: 22475 bytes (43061 left)
root@DD-WRT:~# nvram show | grep BOARD
DD_BOARD=Linksys E900
size: 22475 bytes (43061 left)
root@DD-WRT:~#
Posted: Thu Apr 26, 2018 19:44 Post subject: Re: Moving LAN port to WAN port
prakashp wrote:
I have tried your suggestion of moving one port from vlan1 to valn2 but it did not work.
Did you also try changing vlan0? To be clear, after making changes (with nvram set), you're using `nvram commit` and `reboot`, and testing both the first and last LAN ports (in case the numbering is reversed)?
Posted: Thu Apr 26, 2018 21:35 Post subject: Re: Moving LAN port to WAN port
jwh7 wrote:
prakashp wrote:
I have tried your suggestion of moving one port from vlan1 to valn2 but it did not work.
Did you also try changing vlan0? To be clear, after making changes (with nvram set), you're using `nvram commit` and `reboot`, and testing both the first and last LAN ports (in case the numbering is reversed)?
Yes, I also tried changing vlan0 and did make changes with "nvram set" command and then "nvram commit" followed by reboot. It did not work.
prakashp wrote:
root@DD-WRT:~# nvram show | grep vlan
What does this show: strings /dev/mtd0|grep vlan
It did not show anything.
After trying the above, I just did an upgrade to "dd-wrt.v24-35770_NEWD-2_K2.6_big-nv64k.bin" thinking its latest and more stable, but after upgrade I'm unable to access router setup page. Even the router IP 192.168.1.1 does not ping. Its pinging for short duration while booting
Posted: Fri Apr 27, 2018 3:26 Post subject: Re: Moving LAN port to WAN port
prakashp wrote:
After trying the above, I just did an upgrade to "dd-wrt.v24-35770_NEWD-2_K2.6_big-nv64k.bin" thinking its latest and more stable, but after upgrade I'm unable to access router setup page. Even the router IP 192.168.1.1 does not ping.
Latest builds have had lots of issues (esp after 35531), that's why Per said to try 35244. _________________ #NAT/SFE/CTF: limited speed w/ DD#Repeater issues#DD-WRT info: FAQ, Builds, Types, Modes, Changes, Demo#
OPNsense x64 5050e ITX|DD: DIR-810L, 2*EA6900@1GHz, R6300v1, RT-N66U@663, WNDR4000@533, E1500@353,
WRT54G{Lv1.1,Sv6}@250|FreshTomato: F7D8302@532|OpenWRT: F9K1119v1, RT-ACRH13, R6220, WNDR3700v4
Posted: Fri Apr 27, 2018 17:39 Post subject: Re: Moving LAN port to WAN port
jwh7 wrote:
prakashp wrote:
After trying the above, I just did an upgrade to "dd-wrt.v24-35770_NEWD-2_K2.6_big-nv64k.bin" thinking its latest and more stable, but after upgrade I'm unable to access router setup page. Even the router IP 192.168.1.1 does not ping.
Latest builds have had lots of issues (esp after 35531), that's why Per said to try 35244.
+1
.. I have an wrt610nv2 aka(e3000).
This build has zero issues
You should be able to TFTP while it answers to ping.
Finally I brought up my router literally back from the grave . Thank you guys for your great help.
The settings suggested by jwh7, worked after upgrading router firmware to "dd-wrt.v24-35244_NEWD-2_K3.x_mega-nv64k.bin".
nvram set vlan2ports="3 4 5"
nvram set vlan1ports="0 1 2 5*"
nvram commit
reboot
Initially I performed an upgrade to "dd-wrt.v24-35244_NEWD-2_K2.6_mini-e900.bin" through TFTP and then to "dd-wrt.v24-35244_NEWD-2_K3.x_mega-nv64k.bin" using GUI.
I will just elaborate the stops I followed to recover my bricked router so that it might be helpful for someone like me .
First of all I, had to open my E900 router to get the console (serial) access, as it does not have an external serial port access. To do that I have used
"USB TO UART TTL 5V 3.3V FT232RL Serial Adapter Module For Arduino" (uploaded the pictures). And Connected according to the pin configuration described in
The adaptor actually has 6 pins but the router PCB has only 5 holes. So, what I did was, just folded the 6th Ground pin and connected the adaptor to the board and then to PC using USB. I have uploaded the pictures about the same.
Once I got the console, I was happy that still my router was alive and something can still be done.
Performed an upgrade from TFTP by following steps suggested in
I did these TFTP upgrades many times before connecting the console and all were showing as success but in actual, it was not. It was always throwing following error.
### Start=436363944 E=2143281295 Delta=1706917351 ###
Entry at 0x807ae1e0
CMD: [boot -raw -z -addr=0x80001000 -max=0x1851e20 -fs=memory :0x807ae1e0]
Loader:raw Filesys:memory Dev:eth0 File::0x807ae1e0 Options:(null)
Loading: PANIC: out of memory!
It looks like the regular TFTP upgrade will not work for E900.
After this I performed following steps which worked finally
1. Reboot the router and while booting continuously press CTRL+C to enter into CFE prompt.
2. Once you are in CFE prompt, use command "upgrade code.bin", this will wait for the TFTP upload to start.