ubuntu设置静态ip
来源:互联网 发布:java public 方法 编辑:程序博客网 时间:2024/06/01 09:04
Ubuntu10.04设置静态IP
2010-12-20 09:39
step1:设定IP
vi /etc/network/interfaces
文件内容修改为:
auto eth0
iface eth0 inet static
address 192.168.1.2
gateway 192.168.1.1
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
(根据自己的主机情况而定)
然后重启networking
/etc/init.d/networking restart
step2:设置DNS
vi /etc/resolv.conf
文件内容修改为:
# Generated by NetworkManager
nameserver 202.103.24.68(202.103.44.150武汉电信dns)nameserver 202.103.24.60
不需要重启操作,这是修改后马上生效的
输入任意网址进行测试,如果连接成功则表示设置静态IP成功
原文链接:http://blog.163.com/stone_gzb/blog/static/1717998292011299421786/
0 0
- ubuntu设置静态IP
- Ubuntu设置静态IP
- Ubuntu设置静态 IP
- ubuntu ip静态设置
- Ubuntu设置静态IP
- ubuntu 设置静态IP
- Ubuntu静态IP设置
- ubuntu 设置静态ip
- ubuntu设置静态ip
- ubuntu设置静态ip
- Ubuntu设置静态 IP
- ubuntu设置静态ip
- ubuntu设置静态IP
- ubuntu 设置静态ip
- Ubuntu设置静态IP
- ubuntu静态IP设置
- 设置ubuntu静态IP
- ubuntu 设置静态IP
- 来试一下!
- XML万能数据库C#版
- stm32存储结构& 存储器映射
- Android---61---TabHost简单使用
- Hive索引
- ubuntu设置静态ip
- Sybase EAServer学习(一) 创建Ms SqlServer 连接池
- 命令执行错误系列(一)ls: 初始化月份字符串出错
- 基于 CoreText 的排版引擎:基础
- Android高通平台调试Camera驱动全纪录
- T_SQL总结笔记
- 世界,您好!
- php 析构方法 详解
- spoj Count on a tree【主席树】