Ubuntu16.04 静态IP配置
发布时间:2020-11-18 05:07:09 所属栏目: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 (编辑:东莞站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
推荐文章
站长推荐
- VirtualBox安装Ubuntu Server16.04虚拟机的图文教
- Ubuntu 16.04 安装 VMware Tools后开机启动卡在A
- Ubuntu QT调试make_slc_s1a
- Ubuntu安装jdk,正确配置环境变量
- Ubuntu 16.04出现:Problem executing scripts A
- 如何在Ubuntu中安装navicat112_premium_cs_x64,并
- Ubuntu16.04下搭建开发环境及编译tiny4412 Andro
- ubuntu安装zabbix server和agent的一些问题
- ubuntu14.04安装配置jdk1.8.0_45
- ubuntu主题和shell的配置
热点阅读
