当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 6 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : ubuntu8.04 双网卡严重故障!!
帖子发表于 : 2008-11-11 10:23 

注册: 2008-09-15 21:22
帖子: 42
送出感谢: 0 次
接收感谢: 0 次
:em20

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

不过另一块单卡没有问题,配置方法一样。重启后数据还在。所以现在一直用他。可以我装这台机是用来,学习pptpd 的,一张卡不行。
还请大侠救命呀~~~


页首
 用户资料  
 
2 楼 
 文章标题 : Re: ubuntu8.04 双网卡严重故障!!
帖子发表于 : 2008-11-11 11:13 

注册: 2008-09-15 21:22
帖子: 42
送出感谢: 0 次
接收感谢: 0 次
这里我用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


页首
 用户资料  
 
3 楼 
 文章标题 : Re: ubuntu8.04 双网卡严重故障!!
帖子发表于 : 2008-11-11 11:52 

注册: 2006-09-07 22:51
帖子: 849
送出感谢: 0 次
接收感谢: 0 次
sudo cat /etc/udev/rules.d/*-persistent-net.rules
结果发来看看


_________________
blog:http://wkt55555.blog.163.com/


页首
 用户资料  
 
4 楼 
 文章标题 : Re: ubuntu8.04 双网卡严重故障!!
帖子发表于 : 2008-11-11 12:20 

注册: 2008-01-25 13:02
帖子: 63
送出感谢: 0 次
接收感谢: 0 次
似乎应该是删除networkmanager自动识别的那个网卡,然后手动添加就好了~~~


页首
 用户资料  
 
5 楼 
 文章标题 : Re: ubuntu8.04 双网卡严重故障!!
帖子发表于 : 2008-11-12 8:21 

注册: 2008-09-15 21:22
帖子: 42
送出感谢: 0 次
接收感谢: 0 次
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:~$


页首
 用户资料  
 
6 楼 
 文章标题 : Re: ubuntu8.04 双网卡严重故障!!
帖子发表于 : 2008-11-12 8:26 

注册: 2008-09-15 21:22
帖子: 42
送出感谢: 0 次
接收感谢: 0 次
在这里随便问一下!

# 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


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 6 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 4 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译