-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ubuntu 18.04 设置静态ip方法 #1
Comments
如果要恢复动态IP,将此文件删掉,再运行一次 |
不要修改这个文件
参考文档: |
这里有几点需要注意: |
1,先查看配置的网卡ID和当前的IP
ifconfig
注意上面截图的画圈位置。
2、查看子网掩码写法
ip a
3、编辑配置文件
nano /etc/netplan/01-netcfg.yaml
下面内容填上,其中【addresses】字段参考上面第2步截图内容
保存并退出
4、应用变更内容
sudo netplan apply
The text was updated successfully, but these errors were encountered: