版主: mufa
nano /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.0.100
netmask 255.255.255.0
broadcast 192.168.0.255
auto eth1
iface eth1 inet dhcp
auto eth2
iface eth2 inet static
address 10.242.151.197
netmask 255.255.255.240
broadcast 10.242.151.207
up /sbin/route add -net 10.0.0.0 netmask 255.0.0.0 gw 10.242.151.206
down /sbin/route del -net 10.0.0.0 netmask 255.0.0.0 gw 10.242.151.206
auto eth3
iface eth3 inet static
address 172.16.0.100
netmask 255.255.255.0
broadcast 172.16.0.255
/sbin/route add default gw dev eth1
netstat -r
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
10.242.151.192 * 255.255.255.240 U 0 0 0 eth2
61.xx.xxx.0 * 255.255.255.0 U 0 0 0 eth1
172.16.0.0 * 255.255.255.0 U 0 0 0 eth3
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
10.0.0.0 10.242.151.206 255.0.0.0 UG 0 0 0 eth2
default 61-xx-xxx-1.ads 0.0.0.0 UG 0 0 0 eth1
正在瀏覽這個版面的使用者:沒有註冊會員 和 1 位訪客