Ubuntu16.04 静态IP配置
2017-05-10 00:00
351 查看
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
- VMWare虚拟机下为Ubuntu 12.04.1配置静态IP(NAT方式)
- 阿里云服务器+Ubuntu 16.04平台Wordpress的安装与配置
- 如何配置Ubuntu 16.04 GRUB 2引导加载程序
- ubuntu16.04 LTS 下tftp的安装、配置、使用
- Ubuntu 16.04远程登录服务器--ssh的安装和配置
- caffe在ubuntu16.04配置流程
- ubuntu16.04 配置Java环境
- Ubuntu16.04里django的配置和安装
- 配置GPU+Ubuntu16.04+caffe
- Ubuntu16.04下安装sublime text3并配置anaconda插件
- Ubuntu16.04配置GPU caffe 加Qt下caffe和opencv环境配置
- Ubuntu16.04 安装eclipse 并配置OpenCV (C/C++项目)
- Caffe开发(1):Ubuntu 16.04环境下caffe配置
- 深度学习主机环境配置: Ubuntu16.04+Nvidia GTX 1080+CUDA8.0
- ubuntu16.04配置caffe遇到的问题
- Ubuntu16.04 开发环境配置