That's what I've been using and it works fine....kind of.
This is what my problem is:
eth0 - ip address 10.2.162.2 -- Incoming Internet
eth1 - ip address 10.2.162.3 -- Switch with multiple computers
br0 - ip address 10.2.162.5 -- You know...it's the bridge
The odd thing is sometimes I can ping google.com fine...other times I can't. It's not an ISP issue though.
The server is connected to a Cisco VPN router. When I try to ping, lets say 10.2.162.2 from another location (10.2.175.1) it works sometimes. When it stops responding I can usually ping 10.2.162.5.
Sometimes 10.2.162.5 stops responding and then I can ping 10.2.162.2 again.
I'm not sure what's going on here.
These are the commands I've been using to create my bridge:
Code:
brctl addbr br0
brctl addif br0 eth0
brctl addif br0 eth1
ip link set br0 up
ip addr add 10.2.162.5/24 brd + dev br0
route add default gw 10.2.162.1 dev br0