A主機
ifconfig eth0 192.168.1.1 netmask 255.255.255.240 up
ip route add default via 192.168.1.14
B主機
ifconfig eth0 192.168.1.13 netmask 255.255.255.240 up
ip route add default via 192.168.1.14
C主機 (先關閉Firewall)
yum install bridge-utils
ifconfig eth0 0.0.0.0 up
ifconfig eth1 0.0.0.0 up
ifconfig eth2 0.0.0.0 up
brctl addbr myB
brctl addif myB eth0
brctl addif myB eth1
brctl addif myB eth2
ifconfig myB up
D主機
ifconfig eth0 192.168.1.65 netmask 255.255.255.192 up
ip route add default via 192.168.1.126
E主機
ifconfig eth0 192.168.2.1 netmask 255.255.254.0 up
ip rouute add default via 192.168.3.254
F主機(先關閉Firewall)
ifconfig eth0 192.168.1.14 netmask 255.255.255.240 up
ifconfig eth1 192.168.1.126 netmask 255.255.255.192 up
ifconfig eth2 192.168.3.254 netmask 255.255.254.0 up
ifconfig eth3 192.168.4.1 netmask 255.255.254.0 up
echo "1" > /proc/sys/net/ipv4/ip_forward
ip route add 192.168.5.0/24 via 192.168.4.254
G主機(先關閉Firewall)
ifconfig eth0 192.168.4.254 netmask 255.255.255.0 up
ifconfig eth1 192.168.5.1 netmask 255.255.255.0 up
echo "1" > /proc/sys/net/ipv4/ip_forward
ip route add 192.168.0.0/22 via 192.168.4.1
H主機
ifconfig eth0 192.168.5.254 netmask 255.255.255.0 up
ip route add default via 192.168.5.1