Hello,
currently I try to setup a bridge between two networks, the server is a CentOS 6.4 with a single NIC. But every time when I run bridge-start I can not connect to the server. My first fault was that I forget to add a default gateway to the bridge-start script, but also with the added gateway I can not connect to the server. It is also not possible to reach the network from the server after running the script.
Here is my bridge-start script:
#!/bin/sh
br="br0"
tap="tap0"
eth="eth0"
eth_ip="XXX.XXX.XXX.XXX"
eth_netmask="XXX.XXX.XXX.XXX"
eth_broadcast="XXX.XXX.XXX.XXX"
eth_gateway="XXX.XXX.XXX.XXX"
for t in $tap; do
openvpn --mktun --dev $t
done
brctl addbr $br
brctl addif $br $eth
for t in $tap; do
brctl addif $br $t
done
for t in $tap; do
ifconfig $t 0.0.0.0 promisc up
done
ifconfig $eth 0.0.0.0 promisc up
ifconfig $br $eth_ip netmask $eth_netmask broadcast $eth_broadcast
route add default gw $eth_gateway
Thanks,
TeyTey