Ubuntu16.04 静态IP配置
2017-05-10 10:01
274 查看
Ubuntu16.04 静态IP配置
修改配置
登录系统后,编辑文件/etc/network/interfaces。原始的内容如下:
# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). source /etc/network/interfaces.d/* # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eno1 iface eno1 inet dhcp # This is an autoconfigured IPv6 interface iface eno1 inet6 auto
修改成如下内容:
# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). source /etc/network/interfaces.d/* # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eno1 iface eno1 inet static address 192.168.0.100 netmask 255.255.255.0 gateway 192.168.0.254 # This is an autoconfigured IPv6 interface iface eno1 inet6 auto
重启网络
sudo /etc/init.d/networking restart
相关文章推荐
- Ubuntu Server 16.04 配置静态IP
- Ubuntu16.04 静态IP配置
- ubuntu16.04虚拟机桥接模式配置静态IP
- ubuntu配置静态IP和静态DNS
- Ubuntu网络配置静态IP与hostname使用命令
- ubuntu 下配置静态IP
- ubuntu配置静态ip
- VMWare虚拟机下为Ubuntu 12.04.1配置静态IP(NAT方式)
- Ubuntu 12.04 网络配置 Ubuntu静态IP Ubuntu上网配置
- VMWare虚拟机下为Ubuntu 12.04.1配置静态IP(NAT方式)
- VM中ubuntu已经正确配置了静态IP仍无法上网
- ubuntu server 配置静态IP,无线上网
- ubuntu 8.10 手工配置静态IP
- ubuntu无线上网静态ip配置
- VMWare虚拟机下为Ubuntu 12.04.1配置静态IP(NAT方式)
- VMWare虚拟机下为Ubuntu 12.04.1配置静态IP(NAT方式)
- VMWare虚拟机下为Ubuntu 12.04.1配置静态IP(NAT方式)
- Centos 与 Ubuntu 的静态ip配置方法
- VMWare 下新装Ubuntu 网络配置(上网、静态IP)
- VMWare虚拟机下为Ubuntu 12.04.1配置静态IP(NAT方式)