Chinaunix首页 | 论坛 | 博客
  • 博客访问: 342705
  • 博文数量: 88
  • 博客积分: 1673
  • 博客等级: 上尉
  • 技术积分: 934
  • 用 户 组: 普通用户
  • 注册时间: 2009-03-20 13:51
文章分类

全部博文(88)

文章存档

2016年(1)

2015年(4)

2014年(3)

2013年(7)

2012年(11)

2011年(1)

2009年(61)

我的朋友

分类:

2009-09-02 11:06:39

在Solaris下不能上网的解决:
  # ifconfig -a (查看网卡,如网卡是eth0)
 #ifconfig -eth0 up
 #ifconfig -eth0 10.8.8.12(1p地址)/16(子网掩码)
 # route add default 10.8.1.2(网关)
#cd /etc
# gedit hosts,这是打开hosts记事本,在里面得合适位置添加ip地址10.8.8.12(和刚才配置的一样)和你的系统名,比如:

10.8.8.12 SLES11 x86,不知道系统的名字可以在终端输入hostname查看即可。修改后关闭。
# gedit nsswitch.conf (打开nsswitch.conf这个文件,在文件的hosts: files和network:files加上dns,如hosts:files dns)
# get nsswitch.files (打开nsswitch.files这个文件,在文件的hosts: files和network:files加上dns,如hosts:files dns)
# gedit resolv.conf,这是修改网关的文件,在文本的最后加上,nameserver 202.106.0.20(网关),保存关闭。
# ifconfig -a,查看一下刚才修改的情况,在ping 查看是否成功。

阅读(1438) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~