雙網卡

1,雙網卡,在/etc/network/interface中的內容:code

auto eth0
iface eth0 inet static
address 172.16.15.5
netmask 255.255.255.0
gateway 172.16.15.1

auto eth1
iface eth1 inet static
address 172.16.15.25
netmask 255.255.255.0

2,重啓電腦,而後修改/etc/NetworkManager/NetworkManager.conf,把裏邊的managed=false改爲managed=true 。network

3,這時候ping通了,嗯嗯static

相關文章
相關標籤/搜索