OpenWrt Forum Archive

Topic: How map physical port to external interface

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

Hi,

I'm using kamikaze7.09, I have a device similar to Fonera but we have 5 external physical ports.

My query is,
How can i map physical ports to external interface such that

eth0.0 -wan
eth0.1 - lan1 
eth0.2 - lan2 
eth0.3 - lan3 
eth0.4 - lan4

Can anyone throw some light on above issue.

Thanks,
Sharad

The physical port number to the switch port number mapping is device dependent.

in /etc/config/network:

config switch eth0
        option vlan0    "0 5*"
        option vlan1    "1 5"
        option vlan2    "2 5"
        option vlan3    "3 5"
        option vlan4    "4 5"

The discussion might have continued from here.