VLAN setup in Linksys WRT160NL

I follow this guide :

https://openwrt.org/docs/guide-user/network/vlan/switch_configuration

to setup vlan in Linksys WRT160NL but it is not working
this is my vlan in the cli commands

root@OpenWrt:/etc/config# ls -l /sys/class/net
lrwxrwxrwx    1 root     root             0 Jan  1  1970 eth0 -> ../../devices/platform/10000000.fpi/1e180000.etop/net/eth0
lrwxrwxrwx    1 root     root             0 Jan  1  1970 lo -> ../../devices/virtual/net/lo

root@OpenWrt:/etc/config# swconfig dev switch0 show
Global attributes:
        enable_vlan: 0
        trunk: 0
        trunk_sel: 0
Port 0:
        pvid: 0
        link: port:0 link:up speed:100baseT full-duplex auto
Port 1:
        pvid: 1
        link: port:1 link:down
Port 2:
        pvid: 2
        link: port:2 link:down
Port 3:
        pvid: 3
        link: port:3 link:down
Port 4:
        pvid: 4
        link: port:4 link:down
Port 5:
        pvid: 5
        link: port:5 link:up speed:100baseT full-duplex
VLAN 0:
        vid: 0
        ports: 0 5t
VLAN 1:
        vid: 1
        ports: 1 5t
VLAN 2:
        vid: 2
        ports: 2 5t
VLAN 3:
        vid: 3
        ports: 3 5t
VLAN 4:
        vid: 4
        ports: 4 5t
VLAN 5:
        vid: 5
        ports: 0 1 2 3 4

if some one give me a hand and forward to me network file in the config will be easy to me to solve this problem because I corrupted the content in the file .

thanks

Wait, did you just ask for someone to provide you the /etc/config/network file for your specific device...? :thinking:

That may take some time for someone to provide a default config file. After all, most people setup their routers.

* - This will provide a fresh network config file as you desire

1 Like

thank you very much , I will apply these steps now :heart_eyes: :heart_eyes:

1 Like