- 论坛徽章:
- 0
|
机器安装的是Solaris10 X86,网卡是3Com 905,安装完成后发现只能ping通自己。从测试现象看ping的报文确实发出去了,网卡也收到了返回的报文,但ping命令显示未收到。详见以下说明:
(说明:newmac机器上运行的是Solaris10 X86,oldmac上运行的是Windows2000)
1 相关配置文件
/etc/hosts
127.0.0.1 localhost
192.168.5.11 newmac loghost
192.168.5.1 oldmac
/etc/netmasks
192.168.5.0 255.255.255.0
/etc/hostname.elxl0
newmac
/etc/nodename
newmac
2 执行相关命令的输出(以“#”开头表示命令):
# ifconfig -a
lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4>; mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
elxl0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4>; mtu 1500 index 2
inet 192.168.5.11 netmask ffffff00 broadcast 192.168.5.255
ether 0:60:8:ad:8a:51
# netstat -r
Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
192.168.5.0 newmac U 1 4 elxl0
224.0.0.0 newmac U 1 0 elxl0
localhost localhost UH 17 133 lo0
# ls -l /dev/elxl0
lrwxrwxrwx 1 root root 39 Jan 10 16:42 /dev/elxl0 ->; ../devices/pci@0,0/pci10b7,9050@a:elxl0
# ls -l /devices/pci@0,0/pci10b7,9050@a:elxl0
crw-rw-rw- 1 root sys 7, 1 Jan 10 16:45 /devices/pci@0,0/pci10b7,9050@a:elxl0
# prtconf|grep pci10b7
pci10b7,9050, instance #0
# more /etc/path_to_inst|grep elxl
"/pci@0,0/pci10b7,9050@a" 0 "elxl"
# dmesg | grep elxl
Jan 10 18:53:00 newmac pcplusmp: [ID 637496 kern.info] pcplusmp: pci10b7,9050 (elxl) instance 0 vector 0x28 ioapic 0x1 intin 0x12 is bound to cpu 0
Jan 10 18:53:00 newmac gld: [ID 944156 kern.info] elxl0: 3Com 90XX LAN driver: type "ether" mac address 00:60:08:ad:8a:51
Jan 10 18:53:00 newmac pci: [ID 370704 kern.info] PCI-device: pci10b7,9050@a, elxl0
Jan 10 18:53:00 newmac genunix: [ID 936769 kern.info] elxl0 is /pci@0,0/pci10b7,9050@a
Jan 10 19:37:18 newmac pcplusmp: [ID 637496 kern.info] pcplusmp: pci10b7,9050 (elxl) instance 0 vector 0x28 ioapic 0x1 intin 0x12 is bound to cpu 0
Jan 10 19:37:18 newmac gld: [ID 944156 kern.info] elxl0: 3Com 90XX LAN driver: type "ether" mac address 00:60:08:ad:8a:51
Jan 10 19:37:18 newmac pci: [ID 370704 kern.info] PCI-device: pci10b7,9050@a, elxl0
Jan 10 19:37:18 newmac genunix: [ID 936769 kern.info] elxl0 is /pci@0,0/pci10b7,9050@a
3 相关测试结果:
依次执行ping -s oldmac 和 ping -s 192.168.5.255 命令的同时执行snoop命令,snoop的部分输出为:
Using device /dev/elxl0 (promiscuous mode)
newmac ->; oldmac ICMP Echo request (ID: 624 Sequence number: 47)
newmac ->; oldmac ICMP Echo request (ID: 624 Sequence number: 4
newmac ->; oldmac ICMP Echo request (ID: 624 Sequence number: 49)
newmac ->; oldmac ICMP Echo request (ID: 624 Sequence number: 50)
newmac ->; 192.168.5.255 ICMP Echo request (ID: 626 Sequence number: 0)
newmac ->; 192.168.5.255 ICMP Echo request (ID: 626 Sequence number: 1)
newmac ->; 192.168.5.255 ICMP Echo request (ID: 626 Sequence number: 2)
newmac ping oldmac时,使用“网络监视器”工具、arp -a命令以及两台机器网卡的指示灯可以确认,oldmac收到来自newmac的报文,并回了报文(网卡指示灯显示newmac应收到的该报文);oldmac ping newmac时,oldmac未收到回来的报文。即newmac(Solaris)上可以发出报文,但正常接收报文。
在多次测试过程中,在newmac机器上执行arp -a命令时曾看到以下结果(说明newmac驱动程序曾收到来自oldmac的报文),但该现象无法重现:
# arp -a
Net to Media Table: IPv4
Device IP Address Mask Flags Phys Addr
------ -------------------- --------------- ----- ---------------
elxl0 224.0.0.2 255.255.255.255 01:00:5e:00:00:02
elxl0 oldmac 255.255.255.255 00:05:5d:61:ce:5f (Note: this line)
elxl0 newmac 255.255.255.255 SP 00:60:08:ad:8a:51
elxl0 224.0.0.0 240.0.0.0 SM 01:00:5e:00:00:00
另外,将网卡更换PCI插槽后,机器不停reboot,也无法进入单用户模式,没办法只好将网卡还原到原来的插槽。使用devfsadm -i elxl命令,也无效果。使用DHCP(touch /etc/dhcp.elxl0)也无法获取IP地址。
4 其它说明
该网卡原先曾安装在oldmac上,在oldmac上安装有Windows2000和Solaris10 X86,进入Solaris时网卡工作正常(固定IP地址、DHCP动态获取地址均工作正常)。newmac机器的主板是华硕P4V533-MX,以前曾直接安装Solaris(无其它操作系统),由于各种原因无法完全安装;之后先安装Windows2000,再顺利安装Solaris,就发现网卡驱动问题。 |
|