1.編輯rc.local開機檔
$ sudo nano /etc/rc.local
route add -net 192.168.100.0 netmask 255.255.255.0 gw 140.137.214.8 dev eth0
2.邊輯網卡介面檔 /etc/network/interfaces
$ sudo nano /etc/network/interfaces
auto eth1
iface eth1 inet static
address 172.16.1.1
netmask 255.255.0.0
broadcast 172.16.255.255
up route add -net 192.168.160.0/24 gw 172.16.1.4 dev eth1
沒有留言:
張貼留言