2007年10月3日 星期三

建立Bridge

Bridge可以讓兩張網卡連接成一張,以下將eth0與eth1橋接在一起。

# apt-get install bridge-utils
# ifconfig eth0 0.0.0.0 down
# ifconfig eth1 0.0.0.0 down
# brctl addbr br0
# brctl addif br0 eth0
# brctl addif br0 eth1
# brctl stp br0 off
# ifconfig eth0 up
# ifconfig eth1 up
# ifconfig br0 up

0 意見: