Ubuntu配置双网卡

前端之家收集整理的这篇文章主要介绍了Ubuntu配置双网卡前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

首先关闭网络图形界面

sudo service network-manager stop

然后


sudo vim /etc/network/interfaces


修改里面的内容

# interfaces(5) file used by ifup(8) and ifdown(8)
#auto lo
#iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.119.142
netmask 255.255.255.0
gateway 192.168.119.254


auto eth1
iface eth1 inet static
address 192.168.119.145
netmask 255.255.255.0
gateway 192.168.119.254

然后重启网络

sudo /etc/init.d/networking restart

原文链接:https://www.f2er.com/ubuntu/356371.html

猜你在找的Ubuntu相关文章