Hi, guys,
I am doing this to connect my home computer network to a VLANed network.
Code:
eth0 |-------------| eth1 |---------|
ACC =======| LinuxBox |==============| Switch |========PCs
|_____________| |_________|
I have the LINUX box with port eth0 and eth1. The setup is like follow:
1, eth0 connected to a network with three vlan: VID 1011, 1012, 1013
2, the eth1 is connected to my home network's switch-a soho switch without VLAN support
I'm tring to use the LinuxBox as a bridge to unTAG the VLAN thing, so I can use my pc to access the ACC network. I did the following but seems cause loop in the ACC end, any ideas?
Thanks,
-----------------------------------------------------------
#!/bin/sh
#eth0 and eth1 is in the bridge already
ifconfig br0 0.0.0.0
ifconfig eth0 192.168.2.10
brctl delif br0 eth0
# VLAN 1011
vconfig add eth0 1011
brctl addif br0 eth0.1011
ifconfig eth0.1011 0.0.0.0
#VLAN 1012
vconfig add eth0 1012
brctl addif br0 eth0.1012
ifconfig eth0.1012 0.0.0.0
#VLAN 1013
vconfig add eth0 1013
brctl addif br0 eth0.1013
ifconfig eth0.1013 0.0.0.0
# here we prevent 1013 data to be sent on the 1012 internet VLAN
ebtables -A FORWARD -i plc0.1013 -o plc0.1012 -j DROP