OpenWrt Forum Archive

Topic: Broken WAN port after storm, how to change LAN port into WAN

The content of this topic has been archived on 6 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi !
Today in the morning I realized that my internet connection went down. I checked that the internet diode in my WRT54GL is not flashing any more, even if I plug or replug the cable to WAN port. It was storm in the night, so probably my WAN port is damaged. The switch is still workin, wifi too, but no acces to internet. How to remap the switch in kamikaze 7.09 in WRT54GL.

Here is my original /etc/config/network

#### VLAN configuration
config switch eth0
        option vlan0    '0 1 2 3 5*'
        option vlan1    '4 5'

#### Loopback configuration
config interface loopback
        option ifname   "lo"
        option proto    static
        option ipaddr   127.0.0.1
        option netmask  255.0.0.0

#### WAN configuration               
config interface        wan       
        option ifname   "eth0.1"
        option proto    dhcp 

#### LAN configuration
config interface lan
        option type     bridge
        option ifname   "eth0.0"
        option proto    static
        option ipaddr   192.168.0.1
        option netmask  255.255.255.0
        option dns      192.168.1.1

Can anybody tell me what I need to change in my conf. ?

(Last edited by lgolebio on 28 Jun 2008, 13:25)

So if you would like to use LAN 1 as the WAN port your /etc/config/network should look like this:

#### VLAN configuration
config switch eth0
        option vlan0    '0 1 2 5*'
        option vlan1    '3 5'

#### Loopback configuration
config interface loopback
        option ifname   "lo"
        option proto    static
        option ipaddr   127.0.0.1
        option netmask  255.0.0.0

#### WAN configuration               
config interface        wan       
        option ifname   "eth0.1"
        option proto    dhcp 

#### LAN configuration
config interface lan
        option type     bridge
        option ifname   "eth0.0"
        option proto    static
        option ipaddr   192.168.0.1
        option netmask  255.255.255.0
        option dns      192.168.1.1

Following lines below are for using UCI to modify /etc/config/network

# uci set network.eth0.vlan0="0 1 2 5*"
# uci set network.eth0.vlan1="3 5"
# uci commit network && reboot

After a reboot LAN (vlan0, eth0.0) is LAN 2, LAN 3, LAN 4 and WAN (vlan1, eth0.1) is LAN 1.
The normal WAN port is unused. See also http://forum.openwrt.org/viewtopic.php?pid=59160#p59160

(Last edited by forum2008 on 28 Jun 2008, 13:47)

Hello every body.

I have a wrt54GL CL7B 1G634533. he died  Wan and first port. In rest everything is ok.
I updated firmware on "dd-wrt.v24_mini_generic.bin" in hope to revive.
I searched on internet about this problem and camed here.  I read the post but i don't know what to do next. I do not know where is the /etc/network and where to put the modified code . Can any body help me a little please ? where is this conf file to be modified ? I need these ruter because is working wery well.
Thanks in advance. Sorry for my poor enghlish, i don't speeak very well.

Sorin sad

(Last edited by nemonavicusrino on 6 Feb 2010, 11:39)

any advice ?

nemonavicusrino wrote:

any advice ?

try the dd-wrt forum, if you have dd-wrt related questions, or install openwrt

I came across this problem and I happened to come across this thread with no solution.

FYI. If you have access to the web interface. You need to put the port you want to switch to wan (eg LAN port 1) to vlan 2 in the switch page. Then when you are assigning the physical settings in the interface page, you say specify eth0.2 (eth0 is all the ports on the switch the .2 refers to the vlan).

http://wiki.openwrt.org/doc/uci/network/switch

farkenell wrote:

I came across this problem and I happened to come across this thread with no solution.

what do you mean, with no solution?
the solution is in post #2 It describes how to change the VLAN-settings to use LAN-Port #1 as WAN instead of the WAN-Port.

The discussion might have continued from here.