Ubuntu 12.04 网络配置 Ubuntu静态IP Ubuntu上网配置
来源:互联网 发布:产品经理书单知乎 编辑:程序博客网 时间:2024/04/29 21:12
执行命令:
1
vim
/etc/network/interfaces
编辑内容如下:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
auto lo
iface lo inet loopback
#网卡eth0的配置
auto eth0
iface eth0 inet static
address 192.168.1.30
#设置得静态IP
netmask 255.255.255.0
gateway 192.168.1.1
#dns-nameservers 8.8.8.8
#network 192.168.1.0
#broadcast 192.168.1.255
#后面两条是网络号和广播号,这个可以由其它信息计算,因此无需设置
#其中dns-nameservers用于指定dns如果按照下面修改/etc/resolv.conf每次开机都被重置
#可以用去掉#号用这里的dns设置
重启生效
1
sudo
/etc/init
.d
/networking
restart
如果不能上网,也有可能是dns问题
1
sudo
vim
/etc/resolv
.conf
设置 nameserver 8.8.8.8 即可
0 0
- Ubuntu 12.04 网络配置 Ubuntu静态IP Ubuntu上网配置
- Ubuntu静态IP Ubuntu上网配置方法
- VMWare 下新装Ubuntu 网络配置(上网、静态IP)
- Ubuntu配置静态IP地址+上网
- ubuntu下配置静态IP上网
- ubuntu server 配置静态IP,无线上网
- ubuntu无线上网静态ip配置
- ubuntu 12.04配置静态ip
- ubuntu配置静态IP
- ubuntu配置静态ip
- ubuntu静态IP配置
- ubuntu配置静态IP
- Ubuntu配置静态ip
- Ubuntu配置静态IP
- Ubuntu配置静态ip
- ubuntu配置静态ip
- ubuntu静态IP配置
- Ubuntu 的网络配置静态IP
- 系统消息
- poj_1860 Bellman-Ford算法的逆向应用
- IPSEC_EROUTE(5) - 列出存在的eroute
- neural network learning_Multilayer perceptron Batch learning when to stop training
- 反射判断成员变量是否静态,并获得其静态成员的值
- Ubuntu 12.04 网络配置 Ubuntu静态IP Ubuntu上网配置
- 73 比大小
- ios各种手势,很有意思
- WebView Cache 缓存清除
- Apache Hadoop 2.2.0 HDFS HA + YARN多机部署
- 智能家居通用管理平台(三)-通信方式和数据结构
- 世事一场
- iOS的设计备忘录
- PCIe设备漫游记----BIOS篇