LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1019|回复: 9

新安装的gentoo_2008_beta2,添了个网卡后不停的up down

[复制链接]
发表于 2008-7-4 16:27:06 | 显示全部楼层 |阅读模式
hi,大家好
刚转到gentoo,新安装的gentoo_2008_beta2,后来添了个网卡出了问题,现象如下,不知道该从哪下手,请大家帮忙看看

eth1: link up, 100Mbps, full-duplex, lpa 0x45E1
eth1: link down
eth1: link up, 100Mbps, full-duplex, lpa 0x45E1
eth1: link down
eth1: link up, 100Mbps, full-duplex, lpa 0x45E1
eth1: link down
eth1: link up, 100Mbps, full-duplex, lpa 0x45E1
eth1: link down
eth1: link up, 100Mbps, full-duplex, lpa 0x45E1
eth1: link down
eth1: link up, 100Mbps, full-duplex, lpa 0x45E1
eth1: link down
eth1: link up, 100Mbps, full-duplex, lpa 0x45E1
eth1: link down
eth1: link up, 100Mbps, full-duplex, lpa 0x45E1
 楼主| 发表于 2008-7-4 16:27:48 | 显示全部楼层
Script started on Sat Jul  5 00:02:45 2008
mmybox1 #ls
mtypescript
root@mybox1:/home/shisl/pwd
/root
root@mybox1:/home/shisl/ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:10:5C:FE:F8:2B  
          inet addr:192.168.3.14  Bcast:192.168.3.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5202 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4248 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:501564 (489.8 Kb)  TX bytes:1032412 (1008.2 Kb)
          Interrupt:17 Base address:0x6000

eth1      Link encap:Ethernet  HWaddr 00:19:E0:2B:EE:89  
          inet addr:192.168.1.32  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6 errors:0 dropped:0 overruns:0 frame:0
          TX packets:388 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:577 (577.0 b)  TX bytes:23280 (22.7 Kb)
          Interrupt:16 Base address:0x4000

lo        Link encapocal Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:694 errors:0 dropped:0 overruns:0 frame:0
          TX packets:694 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:227978 (222.6 Kb)  TX bytes:227978 (222.6 Kb)

root@mybox1:/home/shisl/
route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     0.0.0.0         255.255.255.255 UH    0      0        0 eth1
192.168.3.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         192.168.3.1     0.0.0.0         UG    0      0        0 eth0
root@mybox1:/home/shisl/ping 192.168.3.1
PING 192.168.3.1 (192.168.3.1) 56(84) bytes of data.
64 bytes from 192.168.3.1: icmp_seq=1 ttl=64 time=0.156 ms
64 bytes from 192.168.3.1: icmp_seq=2 ttl=64 time=0.127 ms
^C
--- 192.168.3.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.127/0.141/0.156/0.018 ms
root@mybox1:/home/shisl/ping 192.168.3.1   1.100
PING 192.168.1.100 (192.168.1.100) 56(84) bytes of data.
^C
--- 192.168.1.100 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 999ms

root@mybox1:/home/shisl/ping 192.168.1.1
PING 192.168.1.20 (192.168.1.20) 56(84) bytes of data.
^C
--- 192.168.1.20 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1008ms

root@mybox1:/home/shisl/ping www.badiu.com
PING fw.ename.cn (60.28.193.157) 56(84) bytes of data.
64 bytes from 60.28.193.157: icmp_seq=1 ttl=53 time=6.82 ms
^C
--- fw.ename.cn ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 6.824/6.824/6.824/0.000 ms
root@mybox1:/home/shisl/rc-update add net.eth1 defatul
rc-update: '/etc/init.d/net.eth1' not found; aborting
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-7-4 16:46:37 | 显示全部楼层
怎么没人呢?难道太easy了?
回复 支持 反对

使用道具 举报

发表于 2008-7-4 17:24:55 | 显示全部楼层
交换机有问题,或者网卡有问题。换一个。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-7-4 17:50:56 | 显示全部楼层
两个都是192.168.1网段的时候eth1用命令行能够用,搬到机房换成外部ip就成这样了,这样应该说网卡是没问题的。同时还装了个debian,也是后添的网卡,同样在一个交换机上,没有问题
回复 支持 反对

使用道具 举报

发表于 2008-7-4 18:58:18 | 显示全部楼层
(非常不好意思,回错帖子了……)
回复 支持 反对

使用道具 举报

发表于 2008-7-4 21:23:35 | 显示全部楼层
换交换机的接口试试看。
回复 支持 反对

使用道具 举报

发表于 2008-7-4 22:26:21 | 显示全部楼层
你eth1没有启动起来吧?按理有/etc/init.d/eth1存在.
一般认为你的网卡,网线,switch中有一个不支持100MPS FX.
回复 支持 反对

使用道具 举报

发表于 2008-7-5 00:53:56 | 显示全部楼层
我遇到过类似情况,网卡有问题,有时候抽风,会不停的up/down
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-7-7 10:44:17 | 显示全部楼层
Post by blackwhite;1871090
你eth1没有启动起来吧?按理有/etc/init.d/eth1存在.
一般认为你的网卡,网线,switch中有一个不支持100MPS FX.




ifconfig -a 可以看到eth1,但是在
/etc/init.d、下确没有

网卡是后添的

mybox1 init.d # pwd
/etc/init.d

mybox1 init.d # ls
bootmisc   consolefont   gpm       local       net.lo    numlock    runscript.sh  udev-postmount
checkfs    crypto-loop   halt.sh   localmount  netmount  reboot.sh  shutdown.sh   urandom
checkroot  depscan.sh    hostname  modules     nginx     rmnologin  sshd          vixie-cron
clock      functions.sh  keymaps   net.eth0    nscd      rsyncd     syslog-ng     vsftpd

mybox1 init.d # ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:10:5C:FE:F8:2B
          inet addr:192.168.3.14  Bcast:192.168.3.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:401820 errors:0 dropped:0 overruns:0 frame:0
          TX packets:401286 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:45108942 (43.0 Mb)  TX bytes:74843522 (71.3 Mb)
          Interrupt:17 Base address:0x6000

eth1      Link encap:Ethernet  HWaddr 00:19:E0:2B:EE:89
          inet addr:192.168.1.32  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:6 errors:0 dropped:0 overruns:0 frame:0
          TX packets:38710 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:577 (577.0 b)  TX bytes:2322600 (2.2 Mb)
          Interrupt:16 Base address:0x4000

lo        Link encapocal Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:67022 errors:0 dropped:0 overruns:0 frame:0
          TX packets:67022 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:6842790 (6.5 Mb)  TX bytes:6842790 (6.5 Mb)


mybox1 init.d # cd /etc/conf.d/
mybox1 conf.d # ls
bootmisc  consolefont  env_whitelist  hostname  local.start  net          rc      sshd       urandom
clock     crypto-loop  gpm            keymaps   local.stop   net.example  rsyncd  syslog-ng  wireless.example

mybox1 conf.d # more net
# This blank configuration will automatically use DHCP for any net.*
# scripts in /etc/init.d.  To create a more complete configuration,
# please review /etc/conf.d/net.example and save your configuration
# in /etc/conf.d/net (this file :]!).
config_eth0=("192.168.3.14/24")
#config_eth1=("192.168.1.33/24")
routes_eth0=("default via 192.168.3.1")
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表