13: Configuring an Ethernet interface
_______________________________________________________________________________________________________
_____________________________________________________________________________________________________
© Virtual Access 2017
GW7304 Series User Manual
Issue: 1.9
Page 110 of 336
Web Field/UCI/Package Option
Description
Web: eth0
UCI: network.@va_switch[0].eth0
Opt: eth0
Defines eth0 physical switch port mapping. Must be entered in
upper case.
A
Eth0 assigned to switch port A
B
Eth0 assigned to switch port B
C
Eth0 assigned to switch port C
D
Eth0 assigned to switch port C
Web: eth1
UCI: network.@va_switch[0].eth1
Opt: eth1
Defines eth1 physical switch port mapping. Must be entered in
upper case.
A
Eth1 assigned to switch port A
B
Eth1 assigned to switch port B
C
Eth1 assigned to switch port C
D
Eth1 assigned to switch port C
Web: eth2
UCI: network.@va_switch[0].eth2
Opt: eth2
Defines eth0 physical switch port mapping. Must be entered in
upper case.
A
Eth2 assigned to switch port A
B
Eth2 assigned to switch port B
C
Eth2 assigned to switch port C
D
Eth2 assigned to switch port C
Web: eth3
UCI: network.@va_switch[0].eth3
Opt: eth3
Defines eth0 physical switch port mapping. Must be entered in
upper case.
A
Eth3 assigned to switch port A
B
Eth3 assigned to switch port B
C
Eth3 assigned to switch port C
D
Eth3 assigned to switch port C
Table 29: Information table for interface port map page
13.5.2
Configuring port maps using UCI
The configuration files are stored on /etc/config/network
root@VA_router:~# uci show network
……
network.@va_switch[0]=va_switch
network.@va_switch[0].eth0=A
network.@va_switch[0].eth1=B
network.@va_switch[0].eth2=C
network.@va_switch[0].eth3=D
To change any of the above values use
uci set
command.
13.5.3
Configuring port map using package options
The configuration files are stored on /etc/config/network
root@VA_router:~# uci export network
…..
config va_switch
option eth0 'A'