When you have a adsl interface for WAN Option in such devices (HG556a) and you want to use Ethernet as a WAN Connection, you required following configurations in your network configuration file :
Default network Interface config :
br-lan = LAN & WIFI
eth0 = LAN Ports (4 Port)
wlan0 = Wireless Interface
In Default configuration Device is configured to use adsl Modem as a WAN port
4 port ethernet switch (eth0) and Wireless radio are bridged.
LAN 1 = Switch Port 0
LAN 2 = Switch port 1
LAN 3 = Switch port 2
WAN = Switch port 3
------------------------------------------------------------------------------------------------------------------
# cat /etc/config/network
config interface loopback
option ifname lo
option proto static
option ipaddr 127.0.0.1
option netmask 255.0.0.0
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 nat 1
config interface wan
option ifname eth0.1
option proto dhcp
option defaultroute 1
config switch eth0
option enable 1
option reset 1
option enable_vlan 1
config switch_vlan
option device eth0
option vlan 0
option ports "0 1 2 5t"
config switch_vlan
option device eth0
option vlan 1
option ports "3 5t"
-----------------------------------------------------------------------------------------------------------------------
Default network Interface config :
br-lan = LAN & WIFI
eth0 = LAN Ports (4 Port)
wlan0 = Wireless Interface
In Default configuration Device is configured to use adsl Modem as a WAN port
4 port ethernet switch (eth0) and Wireless radio are bridged.
LAN 1 = Switch Port 0
LAN 2 = Switch port 1
LAN 3 = Switch port 2
WAN = Switch port 3
------------------------------------------------------------------------------------------------------------------
# cat /etc/config/network
config interface loopback
option ifname lo
option proto static
option ipaddr 127.0.0.1
option netmask 255.0.0.0
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 nat 1
config interface wan
option ifname eth0.1
option proto dhcp
option defaultroute 1
config switch eth0
option enable 1
option reset 1
option enable_vlan 1
config switch_vlan
option device eth0
option vlan 0
option ports "0 1 2 5t"
config switch_vlan
option device eth0
option vlan 1
option ports "3 5t"
-----------------------------------------------------------------------------------------------------------------------



