Ubuntu16.04设置静态IP
来源:互联网 发布:形容数据整齐的词语 编辑:程序博客网 时间:2024/06/03 16:33
ubuntu16.04设置静态ip
1、找到文件并作如下修改:
sudo vim /etc/network/interfaces
修改如下部分:
auto eth0
iface eth0 inet static
address 192.168.0.100 #设置自己的ip地址
gateway 192.168.0.1 #自己的网关地址
netmask 255.255.255.0 #设置子网掩码
2、修改dns解析
因为以前是dhcp解析,所以会自动分配dns服务器地址
而一旦设置为静态ip后就没有自动获取到的dns服务器了
要自己设置一个
sudo vim /etc/resolvconf/resolv.conf.d/head
写上一个公网的DNS
nameserver 202.102.134.68 #设置dns
3、重启网卡:
sudo /etc/init.d/network restart
0 0
- Ubuntu16.04设置静态IP
- ubuntu16.04设置静态IP
- Ubuntu16.04设置静态IP
- Ubuntu16设置静态IP
- Ubuntu16.04下设置静态IP
- VM中Ubuntu16.04设置静态IP
- VMware Fusion 设置ubuntu16.04虚拟机静态ip和DNS
- LInux-004 Ubuntu16.04设置静态ip地址。
- ubuntu16虚拟机设置静态ip地址
- Ubuntu16.04 静态IP配置
- ubuntu16.04配置静态ip
- Ubuntu16.04虚拟机设置固定IP上网
- Ubuntu16.04虚拟机设置固定IP上网
- Ubuntu10.04设置静态IP
- Ubuntu10.04 设置静态IP
- ubuntu14.04设置静态ip
- ubuntu14.04设置静态ip
- Ubuntu14.04设置静态IP
- 训练样本制作--Annotating Object Instances with a Polygon-RNN
- Linux命令
- sim开机APDU命令流程
- 无痛学会各种 2 的 Vue2+Vuex2+Webpack2 前后端同构渲染
- HDU-1159 Common Subsequence(最长公共子序列)
- Ubuntu16.04设置静态IP
- fan out flow
- Linux命令行与shell脚本(18)--shell连接mysql
- Spring Boot 核心-外部配置
- CUDA deviceQuery参数详解
- C++第五次作业报告
- 解决手机端中文输入法中keyup不灵便的方法
- 数据预处理-OneHot编码
- 京东2017实习生招聘试题 静态方法