ubuntu下配置静态IP
来源:互联网 发布:java手机游戏下载 编辑:程序博客网 时间:2024/05/16 05:19
ubuntu下配置静态IP
先执行如下命令:
sudo vim /etc/network/interfaces
按如下修改:
# This file describes the network interfaces available on your system# and how to activate them. For more information, see interfaces(5).# The loopback network interfaceauto loiface lo inet loopback# The primary network interfaceauto eth0iface eth0 inet static # 把dhcp改成staticaddress 192.168.10.211 # 固定本机的IP地址gateway 192.168.10.1 # 检查当前网络的网关,填入这里netmask 255.255.255.0 # 子网掩码# 配置DNS解析,根据自己网络的运营商以及地址去百度上搜吧,本人这里是杭州电信dns-nameserves 202.101.172.35 202.101.172.47
DNS解析也可通过如下设置:
sudo vim /etc/resolv.conf
修改如下:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN# 配置DNS解析,操作同上,这里是杭州电信nameserver 202.101.172.35nameserver 202.101.172.47
上述操作完成后,重启网络,输入如下命令:
sudo ifdown eth0sudo ifup eth0# 或sudo /etc/init.d/network restart
0 0
- Ubuntu下配置静态ip
- ubuntu 下配置静态ip
- Ubuntu下配置静态IP
- ubuntu下配置静态IP
- Ubuntu下配置静态IP(转载)
- 虚拟机下ubuntu配置静态IP
- ubuntu下配置静态IP上网
- Ubuntu下静态IP地址的配置
- VMware下Ubuntu 14.04静态ip配置
- Ubuntu下的静态IP配置
- ubuntu配置静态IP
- ubuntu配置静态ip
- ubuntu静态IP配置
- ubuntu配置静态IP
- Ubuntu配置静态ip
- Ubuntu配置静态IP
- Ubuntu配置静态ip
- ubuntu配置静态ip
- 蓝桥杯 ADV-180 算法提高 陶陶摘苹果2
- maven-compiler-plugin 指定JDK版本和编码
- eclipse安装adt插件
- Java环境变量设置
- 基础概述
- ubuntu下配置静态IP
- mybatis中动态sql标签之if trim
- Android Studio启动时出现unable to access android sdk add-on list
- AndroidStudio启动时不自动打开项目
- 财产,势力,地位,影响力,作品,关系,朋友圈,生活档次,穿着,背景,知名度, 都是这样的需求。
- MyEclipse修改Servlet模板
- 前台debugger的使用
- 查看MySql数据库物理文件存放位置
- Java 8 – List分组GroupBy