Ubuntu16.04桌面版配置双网卡

环境

Ubuntu 16.04 LTS

配置步骤

1.修改 /etc/network/interfaces网络

auto enp4s0
iface enp4s0 inet static
address 192.168.1.10
netmask 255.255.255.0
gateway 192.168.1.1

auto enp5s0
iface enp5s0 inet static
address 192.168.2.20
netmask 255.255.255.0 # 内网指定访问不须要设置网关

2.修改/etc/NetworkManage/NetworkManage.confide

[ifupdown]
managed=true

3.修改/etc/resolvconf/resolv.conf.d/baserest

nameserver 1.1.1.1

4.在桌面右上角删除,以前系统自动配置的链接code

除了ifupdown相关的链接都删除

5.重启网络管理服务,重启网卡server

/etc/init.d/network-manage restart
/etc/init.d/networking restart
相关文章
相关标签/搜索