首页 > 系统服务 > 详细

Ubuntu16.04桌面版配置双网卡

时间:2020-10-02 09:58:18      阅读:153      评论:0      收藏:0      [点我收藏+]
环境
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.conf

[ifupdown]
managed=true

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

nameserver 1.1.1.1

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

除了ifupdown相关的连接都删除

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

/etc/init.d/network-manage restart
/etc/init.d/networking restart

Ubuntu16.04桌面版配置双网卡

原文:https://blog.51cto.com/dldxzjr/2539594

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!