ubuntu14.04 桥接模式配置静态ip
前言: 桥接模式的好处 1.可以和主机在同一个网段 2.也可以上外网 ============================================================================ 一、ubuntu启动前设置 二、ubuntu14.04操作步骤 1.# 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.1.189 #参考主机的ip跟主机Ip配置在同一个网段 netmask 255.255.255.0 gateway 192.168.1.1 2. # vim /etc/resolv.conf nameserver 114.114.114.114 #参考主机的DNS网址 3.重启网卡 关闭网卡 ifdown eth0 开启网卡 ifup eth0 4.#ifconfig 查看配置情况 5.ping 自己的主机或www.baidu.com 就会成功 来源: CSDN 作者: 心若明,则志坚 链接: https://blog.csdn.net/qq_29461259/article