ubuntu 15.10 配置網卡和路由
手動設置服務器的路由
route add -net 192.168.4.0/24 gw 192.168.4.1 dev eth0
注意:手動添加的路由,服務器重啟后不生效;可以把上面的語句添加到開機自啟動文件中/etc/rc.local;
vim /etc/network/interfaces
auto eth0
iface eth0 inet static
address 61.129.111.222
netmask 255.255.255.248
gateway 61.129.111.221
auto eth1
iface eth1 inet static
address 192.168.10.144
netmask 255.255.255.0
gateway 192.168.10.254
posted on 2016-01-23 11:31 AlanTop 閱讀(270) 評論(0) 編輯 收藏 引用 所屬分類: ubuntu

