How can I change my router's lan port to wan port?

If you're not seeing anything in the "2" row, you've got some basic configuration problems to start. What you're showing there doesn't connect the CPU "WAN" sub-interface to any ports at all.

Typically, with a single-Interface SoC, I'd expect something like what lleachii posted. If you match his screenshot, to you "magically" have your WAN back?

1 Like

thats the thing im also worring.

where is the "WAN" in my config

https://forum.archive.openwrt.org/viewtopic.php?id=16148

I read this post.
But how can i configure /etc/config/network ??
where is it?

If you don't know where is /etc/config/network then you probably shouldn't touch it. Editing config files manually can easily break things if you don't know what you are doing. Using uci commands is a bit safer.

Aside from the WAN port that is not showing, did you try just swapping one LAN port from VLAN1 to VLAN2 as @lleachii explained and see if it works?

1 Like

I selected another port. (lan1)

  • Turned its VLAN 1 to off
  • Turned its VLAN 2 to untagged

then plugged my net cable into lan1 but lan1 isnt working as wan -_-

Should be 2.

I advise not taking support advice from an 11 year old archived post.

  • You shouldn't have to create WAN.
  • Where is your previous WAN setting?
  • Can you show the picture?
1 Like

Also, does it show as plugged in the GUI? There is a chance that the port annotation in the GUI is the opposite of the labels on the case.

1 Like

its the default setting. (In LAN#\3 I have connected a cable to connect and configure OpenWRT to my pc.)

then I changed the configuration like it's told in the above reply. ( I tried to use LAN1 as my new wan)

It doesn't show a plugged cable!

Incorrect!! VLAN 1 is originally configured as the LAN. See Network > Interfaces.

My instructions stated to make/use a VLAN 2.

Have you tried resetting the router to defaults?

On this model the WAN port has its own connection to the CPU. The network settings are:
WAN : eth0
LAN: eth1.1

Now the eth0 port is burned out, so is go to Network--WAN--Physical settings and connect it to eth1.2 (create a new interface at the bottom) instead. This sends WAN traffic toward the switch with a tag of 2.

You must have a VLAN 2 in the switch and have that VLAN connected tagged to the CPU. In other words both VLANs are tagged to the CPU, but untagged to the physical port(s) you want them to appear on. Have only one VLAN on each physical port. It needs to be off on the other VLANs.

I inserted my broadband cable into LAN1 but still, no blink in led that... broadband cable is plugged into the router

It should be pointed out that if lightning hit your installation hard enough to damage the router, the modem was also likely damaged.

And I would not count on everything else on the router still working. All the Ethernet cables go into the same chip, the AR9344, which is also the CPU, the switch, and the wifi.

Switch configuration looks good now but you must also attach the WAN network to eth1.2, which did not exist before. The default is to use eth0, which leads directly to the blue "WAN" port and doesn't involve the switch.

2 Likes

I did reset the router in the first place. But didn't solve.

what did you mean by that? i made VLAN 2 and made LAN1 off in VLAN1 and untagged in VLAN2

And did you also create a WAN Interface in Network > Interfaces?

1 Like

yeah there was great lightning.
we actually use broadband internet here (with coaxial cable) . My broadband wire was connected into the wan port during the lightning (though there was no electricity in our area in that time) .

Can you confirm what kind of ISP modem/router do you have? Are you sure it's working?

1 Like

Solved the problem. I use tp link tl wr 740n. my routers wan port also got damaged. so i created another VLAN (VLAN 2) and set the port 3 "untagged" in VLAN 2 and "off" in VLAN 1. and other ports were set to ''off" except the CPU port. it remained "tagged".

Then i went to network > interface > WAN > EDIT > physical settings > selected interface : eth0.2( VLAN 2).

And everything was solved like a magic. now my ethernet cable is plugged into port 3 instead of the blue wan port.

2 Likes

You can also take a look at how I did it https://gist.github.com/tiagonmas/48ec43ba281c220e544ca55eea9384cd