最新的网络安全咨询!

〓.::展翅高飞::.〓

solaris上网配置

3月 22nd, 2008 by XSign

 

放假安装了个solaris 10 系统,想体验下UNIX操作系统的魅力。安装了一个多钟,夜里3点才装好。一开始就遇到2个问题。一个是屏幕分辨率太低,只有640*480,无法识别液晶显示器。第二个就是无法上网,无法上网就很难边学边查资料。
UNIX和linux配置又有不同,上网查资料修改了几个文件也还是不能上网。运行命令ifconfig -a, 只发现lo0接口,没有发现网卡。最后查到是集成intel pro 100网卡的识别问题,不先解决网卡的识别问题只修改配置文件是没有用的。这里把整个配置过程说明一下,给大家一个参考。

一.识别网卡
1. 使用 /usr/X11/bin/scanpci 查看系统上的PCI设备:
…………….vendor 0×8086 device 0×1050  Intel Corporation PRO/100 VE Network Connection

2. 编辑/etc/driver_aliases,增加以下内容
iprb “pci8086,1050″ (iprb是intel网卡的接口名,后面的id是刚刚用scanpic查到的 8086是venderid)

3. /boot/solaris/devicedb/master文件,加入以下内容:
pci8086,1050 pci8086,1050 net pci iprb.bef “Intel Pro/100 VE Network Connection”

4. 运行devlinks

5. 运行touch /reconfigure

6.编辑/etc/hostname.iprb0, 文件内容是你的主机名。(如果用的是IPv6,那么要编辑的是hostname6.iprb0文件)
7. 重新启动系统
二.配置相关文件
1.配置网关,新建/etc/defaultrouter文本文档,内容为网关ip:

    192.168.1.1(换为你的网关地址,局域网路由器一般是这个)
2.配置DNS:

      修改/etc/nsswitch.conf  ,将 hosts:      files 这一行 修改为  hosts:      files dns

       新建 /etc/resolv.conf文本文档,内容为:nameserver 202.96.128.166 (换为你的DNS
3.
修改/etc/hosts文件,内容:
    127.0.0.1 localhost
    192.168.1.2 loghost
4.设置掩码:修改/etc/netmasks文件
    最后添加一行:192.168.1.1  255.255.255.0
5.重启

6.ifconfig iprb0 unplumb down 停用网卡

   ifconfig iprb0 plumb up 激活网卡

   ifconfig iprb0 dhcp  配置动态分配ip
经过以上步骤系统就可以上网了,真是高兴啊,呵呵

Filed under .::Linux/Unix::. having

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.