本文转载于 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
驱动程序。
#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 中完整)
#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 pcn0 unplumb --停用网卡
# ifconfig pcn0 plumb --啟用网卡
----------------------------------------------------------------------------------------------------------------------------------------------------------
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 |
上面显示安装了两个网卡,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 |
如果出现如下错误信息,说明主机名没有在主机列表中指定:
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 |
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配置内容相同。