Hello dear OpenWrtler,
carambola has only one physical ethernet interface eth0.
carambola has two ethernet ports on it's dev board, which are per default managed as eth0.1 and eth0.2.
I understand that those devices are Virtual Interfaces, that belong to the same physical interface eth0 and enable this physical interface to have two IP addresses. (one network card -> in different subnets at the same time) but i am confused by all this switch / vlan config stuff.
my setup is like this:
i have pc:lan <-> lan:fritzbox(dhcp-router):lan <-> wan:carambola:lan <-> deviceX
carambola wan acts as dhcp-client and seems to get an ip.
problem:
whatever i do,
i either can not ping carambola or carambola can not ping deviceX.
pc does not need to be able to directly connect with deviceX.
all help appreciated.
what needs to be in /etc/config/network to make this work?
i would like carambola to have static IPs:
e.g.
eth0.1 = 192.168.0.250 <-> fritzbox 192.168.0.1
eth0.2 = 192.168.250.250 <-> (this is connected to deviceX with also staticIP 192.168.250.251)
(by the way you can nicely reset your network config with those commands:
# firstboot
# reboot
but be careful, this resets a lot of other stuff (fstab, rclocal) as well )
http://wiki.openwrt.org/_detail/oldwiki … k%3Aswitch