相关推荐: ubuntu配置静态ip ubuntu配置IP地址 ubuntu命令行配置静态ip ubuntu设置固定ip地址 Ubuntu配置网络 ubuntu固定ip配置方法 ubuntu18固定ip ubuntu16.04固定ip配置方法 ubuntu如何看系统配置 ubuntu18固定ip设置 ubuntu配置固定ip地址 ubuntu如何配置源 ubuntu怎么配置ip地址 ubuntu设置固定ip ubuntu无线网卡配置 Ubuntu配置NTP同步 ubuntu查看配置 ubuntu如何看配置 ubuntu怎么固定ip地址 UbuntuDNS服务器配置 ubuntu如何配置Ip地址 ubuntu固定ip设置 ubuntuserver设置固定ip Ubuntu配置固定ip ubuntu18.04配置固定ip ubuntu系统如何看配置 Ubuntu配置永久IP配置文件 ubuntu18.04固定ip配置方法 ubuntu18.04固定ip ubuntu16.04固定ip Ubuntu查看网络配置 ubuntu16.04设置固定ip ubuntu固定ip地址怎么设置 ubuntu固定ip Ubuntu网络配置 ubuntu如何查看配置 ubuntu1804设置固定ip Ubuntu配置网卡 ubuntu20.04固定ip Ubuntu网卡配置 ubuntu怎么固定ip ubuntu20设置固定ip Ubuntu配置DNS服务器 Ubuntu网络配置命令 ubuntu如何查看电脑配置 ubuntu网络 ubuntu16固定ip Ubuntu查看系统配置 Ubuntu配置ssh ubuntu命令行配置固定ip
路由器每重启一次,IP都会改变,下面就让小编给大家说说Ubuntu如何配置固定IP吧。
Ubuntu配置固定ip的方法
首先用root用户登陆,然后输入你root的密码。如下图:
然后编辑interfaces文件,该文件位于/etc/network/下,执行如下命令:
vim /etc/network/interfaces,回车,如图:
添加:
# interfaces(5) file used by ifup(8) and ifdown(8)auto loiface lo inet loopback这以下的是为添加上去该文件上的内容:# The primary network interfaceauto eth0iface eth0 inet staticaddress 192.168.1.100netmask 255.255.255.0gateway 192.168.1.1
请关闭浏览器的畅读模式或者取消屏蔽JavaScript的正常运行,避免出现内容显示不全或者段落错乱。
原网页地址:https://www.fzblnpko.com/xuexila/6066331.html