Solaris10 for x86网卡替换配置攻略

本文转载于  http://www.wrsaw.cn/Article/ShowArticle.asp?ArticleID=37951 

(本文在网页 http://unix.ctocio.com.cn/21/8928521.shtml 中完整)


作者: 丁丁    文章来源: 本站整理    点击数:113    更新时间:2010-12-2


    我用于测试depc机安装了solaris 10 for x86 u3,在安装系统de时候,很顺利de识别了intel网卡。昨天,我de同事,把我机器上deintel网卡拔走了,后来他还我一个3com 3c905de网卡,我把它插在主板PCI插槽上;然后加电,开机引导solaris,系统起来以后,出现报错信息:大概意思是说网卡you问题。我用

  #ifconfig –a 查看,只you环回接口lo0,新插de网卡没you被正确de设置。

  先看看系统里是否you3com网卡de驱动程序。Solaris10de驱动程序一般在系统自带驱动目录/kernel/drv下,这个目录下you好多默认安装上来de驱动程序。怎么知道哪个驱动是什么厂家de呢?打开驱动de配置文件可以看出来。进入目录/kernel/drv,可以看见许多驱动程序和其配置文件成对出现,见下图:





    许多驱动程序和其配置文件成对出现

  这里随便打开一个.conf 文件, -bash-3.00# more e1000g.conf

  # Driver.conf file for Intel e1000g Gigabit Ethernet Adapter

  #

  # Copyright (c) 2002, by Intel, Inc. //intel公司de东东

  # All Rights Reserved.

  #

  #ident "@(#)e1000g.conf 1.1 98/09/22 Intel"

  #

  # Copyright 2006 Sun Microsystems, Inc. All rights reserved.

  # Use is subject to license terms.

  #

  # ident "@(#)e1000g.conf 1.4 06/03/06 SMI"

  ……………..(省略若干)

 

容易就看出intel芯片。当然们不需逐个这些配置文们需这里查找有没有3com 3c509驱动程序。

  目录/kernel/drv执行命令

  #grep “3Com” * ,输出结果如-bash-3.00# grep "3Com" *  //注意厂商个字母
elxl.conf:# Driver.conf file for the 3Com 3C90x  //记住elxl这个名字,模块名。
以看出系统已经有这套驱动程序。如果运行命令没有输出行,那么就需自己载相关驱动程序手动进行安装

  网卡驱动以模块方式加载,尽管们找网卡驱动藏身处,但如果不加载核,点作都没有。先看看网卡驱动否被加载,运行命令#modinfo | grep elxl

  观察其输出,看有无被加载。如果没有,们然手动加载执行加载模块命令

  #modload elxl

  再回头执行

  #modinfo | grep elxl 这回该看见elxl被加载图给出个例子(eri模块):

  

(本文在网页 http://unix.ctocio.com.cn/21/8928521.shtml 中完整)


  给出个eri模块例子接,执行命令

  #devfsadm –i elxl ,完成物理设备名逻辑设备名映射。目录/dev 里找elxl,个链接文ls –al elxl 知道其具体位置。

  执行命令

  #ifconfig elxl0 plumb 几秒钟就完毕,这步始化物理接口elxl0(第个物理接口“0”)。然intel网卡接口名更名3com接口名称。具体做法

  #mv /etc/hostname.ipbr0 /etc/hostname.elxl0 完成重启系统,然运行

  #ifconfig –a 看网络接口否被激活,ping 命令测试网络连通性。

  提示:做配置时候出现误信息,最原因执行操作顺序不。以这个过程,sparc架构intel x86架构都基本相同




----------------------------------------------------------------------------

solaris10 for x86下配置網卡 [转贴 2007-11-02 00:22:47]

本文转载于 http://javazj.blog.hexun.com/14286135_d.html


# ifconfig -a --查看網卡,
 
這里顯示我的網卡是﹕pcn0
 
#ifconfig pcn0 down
#ifconfig pcn0 up
 
這兩條命令﹐相當于關閉﹑啟動windows的網絡連接.

# ifconfig pcn0 unplumb --停用网卡
# ifconfig pcn0 plumb --啟用网卡
 
這兩條命令相當于windows下重裝網卡﹐會遺失網卡的配置信息。
 
接下來重新分配ip和子網掩碼﹐命令如下﹕
# ifconfig pcn0 inet 192.168.2.3 netmask 255.255.255.0 up
以上僅是在solaris10中簡單的網卡ip配置命令。
 
其他方面﹐如添加默認路由的ip﹑添加主機名﹑添加域名等等可以通過修改特定的配置文件來實現。


----------------------------------------------------------------------------------------------------------------------------------------------------------

Solaris 10下的网络IP配置


本文转载于  http://blog.ixpub.net/html/36/16577236-371956.html


操作环境

PC-C204
Solaris 10 u1 x86

配置静态IP

{
 内网:inner 192.168.1.1    255.255.255.0
 外网:outer 192.168.224.251    255.255.255.0
}

外网接口已在安装界面配置完成,现在配置内网接口。

查看双网卡是否已安装:

ls /dev | grep rtls
rtls
rtls0
rtls1
网卡型号决定了网卡的名称,我的网卡名称是:rtls开头
上面显示安装了两个网卡,rtls1就是我们下面的要配置的网卡!

配置网卡接口名称:

vi /etc/hostname.rtls1
inner

配置子网掩码:

chmod 644 /etc/inet/netmasks
vi /etc/inet/netmasks
192.168.224.0   255.255.255.0
192.168.1.0     255.255.255.0

配置网卡接口地址:

chmod 644 /etc/inet/hosts
vi /etc/inet/hosts
127.0.0.1       localhost
192.168.224.251 outer   outer.c204.com  loghost
192.168.1.1     inner   inner.c204.com

统一配置文件:

chmod 644 /etc/inet/ipnodes
vi /etc/inet/ipnodes
::1     localhost
127.0.0.1       localhost
192.168.224.251 outer   outer.c204.com  loghost
192.168.1.1     inner   inner.c204.com

重启:

init 6

网络配置完成后,相关文件的内容:

more /etc/nodename
outer

more /etc/hostname.rtls0 outer

more /etc/hostname.rtls1 inner

more /etc/hosts 127.0.0.1 localhost 192.168.224.251 outer outer.c204.com loghost 192.168.1.1 inner inner.c204.com

more /etc/netmasks 192.168.224.0 255.255.255.0 192.168.1.0 255.255.255.0

more /etc/defaultrouter 192.168.224.1

more /etc/resolv.conf domain c204.com nameserver 202.96.134.133 nameserver 202.96.128.68 search c204.com

more /etc/nsswitch.conf hosts: files dns

错误排除

如果出现如下错误信息,说明主机名没有在主机列表中指定:
Nov 20 15:25:04 unix /usr/lib/snmp/snmpdx: [ID 702911 daemon.error] unable to get my IP address: gethostbyname(unix) failed [h_errno: host not found(1)]
可以这样解决,将主机名加入到主机列表:

more /etc/nodename
unix
vi /etc/hosts
127.0.0.1       localhost       unix    loghost
如果出现如下错误信息,说明你在安装后配置网卡接口名称时 使用了主机名:
Nov 20 15:36:32 unix ip: [ID 482227 kern.notice] ip_arp_done: init failed
可以这样解决,更改网卡接口名:
vi /etc/hostname.rtls0
litchi
vi /etc/hosts
192.168.1.1    litchi    litchi.c204.com

如果出现如下错误信息,说明Sendmail在发出警告信息,不是什么错误:
Nov 20 15:37:21 unix sendmail[318]: [ID 702911 mail.crit] My unqualified host name (localhost) unknown; sleeping for retry
可以尝试这样配置hosts文件,要求全名称且注意loghost的位置:

more /etc/hosts
127.0.0.1       localhost
192.168.224.251 outer   outer.c204.com  loghost
192.168.1.1     inner   inner.c204.com
如果你的系统不必运行Sendmail服务,可以停掉它:
svcs disable /network/smtp:sendmail

查看系统引导信息:
dmesg

完全限定域名错误

错误信息:

Nov 29 21:40:37 wan sendmail[712]: [ID 702911 mail.crit]
My unqualified host name (wan) unknown; sleeping for retry
Nov 29 21:41:37 wan sendmail[712]: [ID 702911 mail.alert]
unable to qualify my own domain name (wan) -- using short name

解决方法:
这是sendmail发出的警告信息,是由于/etc/inet/hosts文件的配置引起的,下面是正确配置:
127.0.0.1       localhost
192.168.224.111 wan     wan.c204.com    loghost

注意:主机名后有完全限定域名,可以随意选择域名;loghost要标识在完全限定域名行;
建议/etc/inet/hosts和/etc/inet/ipnodes配置内容相同。





评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值