ubuntu8.04 双网卡严重故障!!

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
回复
johnny0624
帖子: 42
注册时间: 2008-09-15 21:22
送出感谢: 0
接收感谢: 0

ubuntu8.04 双网卡严重故障!!

#1

帖子 johnny0624 » 2008-11-11 10:23

:em20

昨天新装一台AMD64 ubuntu 我机子是双网卡,一块主板集成,另一块单卡(8139)。
问题来了~
我在集成网卡配置的IP每次重启后,数据丢失。还有个非常怪的问题(比如该卡在硬件名为eth0 ,每次重启硬件名更改为eth1**每次重启都递增1,现在都已经变成eth 10了。)

不过另一块单卡没有问题,配置方法一样。重启后数据还在。所以现在一直用他。可以我装这台机是用来,学习pptpd 的,一张卡不行。
还请大侠救命呀~~~
johnny0624
帖子: 42
注册时间: 2008-09-15 21:22
送出感谢: 0
接收感谢: 0

Re: ubuntu8.04 双网卡严重故障!!

#2

帖子 johnny0624 » 2008-11-11 11:13

这里我用ifconfig查询的结果:
eth1(8139卡) Link encap:Ethernet HWaddr 00:14:78:08:9d:93
inet addr:10.36.32.3 Bcast:10.36.32.255 Mask:255.255.255.0
inet6 addr: fe80::214:78ff:fe08:9d93/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:27733 errors:0 dropped:0 overruns:0 frame:0
TX packets:955 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2261367 (2.1 MB) TX bytes:998406 (975.0 KB)
Interrupt:17 Base address:0xcc00

eth13 Link encap:Ethernet HWaddr 00:00:6c:27:0e:7c
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:252 Base address:0x2000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:7 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:428 (428.0 B) TX bytes:428 (428.0 B)

这是我把/etc/network/interface 导出的结果
auto lo
iface lo inet loopback


iface eth2 inet static
address 10.36.32.3
netmask 255.255.255.0
gateway 10.36.32.1

auto eth2

iface eth4 inet static
address 10.36.32.3
netmask 255.255.255.0
gateway 10.36.32.1

auto eth4

iface eth5 inet static
address 10.36.32.3
netmask 255.255.255.0
gateway 10.36.32.1

auto eth5


iface eth6 inet static
address 10.36.32.3
netmask 255.255.255.0
gateway 10.36.32.1

auto eth6

iface eth7 inet static
address 10.36.32.3
netmask 255.255.255.0
gateway 10.36.32.1

auto eth7

iface eth8 inet static
address 10.36.32.3
netmask 255.255.255.0
gateway 10.36.32.1

auto eth8

iface eth9 inet static
address 10.36.32.3
netmask 255.255.255.0
gateway 10.36.32.1

auto eth9

iface eth1 inet static
address 10.36.32.3
netmask 255.255.255.0
gateway 10.36.32.1

auto eth1
wkt
帖子: 849
注册时间: 2006-09-07 22:51
送出感谢: 0
接收感谢: 0
联系:

Re: ubuntu8.04 双网卡严重故障!!

#3

帖子 wkt » 2008-11-11 11:52

sudo cat /etc/udev/rules.d/*-persistent-net.rules
结果发来看看
zxp19821005
帖子: 63
注册时间: 2008-01-25 13:02
送出感谢: 0
接收感谢: 0

Re: ubuntu8.04 双网卡严重故障!!

#4

帖子 zxp19821005 » 2008-11-11 12:20

似乎应该是删除networkmanager自动识别的那个网卡,然后手动添加就好了~~~
johnny0624
帖子: 42
注册时间: 2008-09-15 21:22
送出感谢: 0
接收感谢: 0

Re: ubuntu8.04 双网卡严重故障!!

#5

帖子 johnny0624 » 2008-11-12 8:21

wkt 写了:sudo cat /etc/udev/rules.d/*-persistent-net.rules
结果发来看看
谢谢各位大侠支持

joh@joh-desktop:~$ sudo cat /etc/udev/rules.d/*-persistent-net.rules
[sudo] password for joh:
# This file maintains persistent names for network interfaces.
# See udev(7) for syntax.
#
# Entries are automatically added by the 75-persistent-net-generator.rules
# file; however you are also free to add your own entries.

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:72:41:88", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x10ec:0x8139 (8139too)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:14:78:08:9d:93", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:11:b2:b1", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:04:84:6e", ATTR{type}=="1", KERNEL=="eth*", NAME="eth3"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:73:f1:da", ATTR{type}=="1", KERNEL=="eth*", NAME="eth4"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:bd:c8:dd", ATTR{type}=="1", KERNEL=="eth*", NAME="eth5"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:a0:8d:01", ATTR{type}=="1", KERNEL=="eth*", NAME="eth6"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:fe:8b:99", ATTR{type}=="1", KERNEL=="eth*", NAME="eth7"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:87:80:a6", ATTR{type}=="1", KERNEL=="eth*", NAME="eth8"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:41:c1:48", ATTR{type}=="1", KERNEL=="eth*", NAME="eth9"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:fe:30:ee", ATTR{type}=="1", KERNEL=="eth*", NAME="eth10"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:4e:c6:8c", ATTR{type}=="1", KERNEL=="eth*", NAME="eth11"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:83:40:1f", ATTR{type}=="1", KERNEL=="eth*", NAME="eth12"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:27:0e:7c", ATTR{type}=="1", KERNEL=="eth*", NAME="eth13"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:f5:41:00", ATTR{type}=="1", KERNEL=="eth*", NAME="eth14"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:05:ac:98", ATTR{type}=="1", KERNEL=="eth*", NAME="eth15"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:11:ce:a3", ATTR{type}=="1", KERNEL=="eth*", NAME="eth16"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:fa:f6:66", ATTR{type}=="1", KERNEL=="eth*", NAME="eth17"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:26:de:03", ATTR{type}=="1", KERNEL=="eth*", NAME="eth18"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:45:8b:25", ATTR{type}=="1", KERNEL=="eth*", NAME="eth19"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:bf:7f:9d", ATTR{type}=="1", KERNEL=="eth*", NAME="eth20"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:f4:b4:72", ATTR{type}=="1", KERNEL=="eth*", NAME="eth21"
joh@joh-desktop:~$
johnny0624
帖子: 42
注册时间: 2008-09-15 21:22
送出感谢: 0
接收感谢: 0

Re: ubuntu8.04 双网卡严重故障!!

#6

帖子 johnny0624 » 2008-11-12 8:26

在这里随便问一下!

# PCI device 0x10ec:0x8139 (8139too)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:14:78:08:9d:93", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
这应该是那张8139的单网卡!

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:72:41:88", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
这就是那张集成网卡了:为什么里面的ATTR{address}==" " 里面的值每次重启后都在改变??

再想请教一个问题。通过查询这语句,怎样判断故障原因? :em03
回复

回到 “网卡问题以及网络和拨号”