相关推荐: ubuntu怎么固定ip ubuntu固定ip地址怎么设置 ubuntu18.04固定ip ubuntuserver设置固定ip ubuntu命令行固定ip配置方法 Ubuntu配置ip Ubuntu网络配置 ubuntu20固定ip ubuntu如何看系统配置 UbuntuDNS服务器配置 ubuntu20设置固定ip Ubuntu配置永久IP配置文件 可视化Ubuntu怎么配置固定IP了 Ubuntu配置DNS服务器 ubuntu怎么设置固定ip Ubuntu配置dns ubuntu16.04固定ip ubuntu无线网卡配置 ubuntu怎么固定ip地址 ubuntu桌面版配置固定ip ubuntu如何固定ip地址 ubuntu18.04固定ip配置方法 ubuntu命令行配置静态ip ubuntu如何设置固定ip ubuntu固定ip地址 Ubuntu查看系统配置 Ubuntu配置NTP同步 ubuntu16.04设置固定ip ubuntu配置IP地址 Ubuntu恢复最近一次正确配置 ubuntu固定ip配置方法 ubuntu设置固定ip ubuntu安装后如何配置 ubuntu固定ip设置 ubuntu20.04固定ip ubuntu配置静态ip ubuntu命令行配置固定ip Ubuntu配置网卡 ubuntu20固定ip设置 ubuntu1804设置固定ip ubuntu网络 Ubuntu配置ssh ubuntu18固定ip设置 Ubuntu网络配置命令 ubuntu20.04设置固定ip Ubuntu网卡配置 ubuntu16.04固定ip配置方法 Ubuntu配置网卡ip ubuntu怎么配置ip地址 ubuntu如何查看电脑配置
路由器每重启一次,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.huaxiaegou.com/xuexila/6066935.html