Ubuntu16.04 静态IP配置
发布时间:2020-11-18 12:15:03 所属栏目:Ubuntu 来源:互联网
导读: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 interface
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 (编辑:日照站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- .net – 可以在Ubuntu上发布ClickOnce应用程序吗?
- 初装Ubuntu(16.04)遇坑填坑记录
- [第二步]在NanoPi NEO UbuntuCore下安装homebridge(相关错误
- ubuntu14.04安装opencv3.0.0的操作方法
- ubuntu VirtualBox 问题汇总
- Ubuntu与Rancher联合发布Kubernetes云原生平台
- 解决VirtualBox中Ubuntu 14.04屏幕分辨率不能设置的问题
- Ubuntu 14.04+Django 1.7.1+Nginx+uwsgi部署教程
- Ubuntu安装HP1018
- Ubuntu 搭建基于Docker的LNMP+Redis的开发环境(图文)
