Gentoo Archives: gentoo-amd64

From: "Nicolas MASSÉ" <nicolas27.masse@×××××××.net>
To: gentoo-amd64@l.g.o
Subject: Re: [gentoo-amd64] installing (2nd)
Date: Wed, 15 Feb 2006 22:02:08
Message-Id: 200602152257.09640.nicolas27.masse@laposte.net
In Reply to: [gentoo-amd64] installing (2nd) by Thierry de Coulon
1 On Wednesday 15 February 2006 21:23, Thierry de Coulon wrote:
2 > Hello, I'm back :)
3
4 Hello
5
6 > So, I've again installed gentoo 64bit on my double opteron. So far I ma
7 > past the basic install, emerging alsa, X and KDE, koffice, xine, as well as
8 > OpenOffice.org 32 bit and mplayer 32. All is working well.
9 >
10 > I've got one problem (as previously) with my network card. It seems my
11 > motherboard (Tyan k8w 2875ANRF) has got TWO ethernet ports (the motherboard
12 > handbooks speaks of a jumper to enable/disable "both ports"), although
13 > there is but ONE connector - anyway, the problem is that that while Gentoo
14 > mostly identifies the first port as Ethernet, it sometimes jumps on the
15 > second. ifconfig -a then reports the following:
16 >
17 > eth0 Link encap:UNSPEC HWaddr
18 > 00-E0-81-00-00-30-BA-8D-00-00-00-00-00-00-00-00
19 > inet addr:192.168.1.52 Bcast:192.168.1.255 Mask:255.255.255.0
20 > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
21 > RX packets:0 errors:0 dropped:0 overruns:0 frame:0
22 > TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
23 > collisions:0 txqueuelen:1000
24 > RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
25 >
26 > eth1 Link encap:Ethernet HWaddr 00:E0:81:40:BF:66
27 > BROADCAST MULTICAST MTU:1500 Metric:1
28 > RX packets:0 errors:0 dropped:0 overruns:0 frame:0
29 > TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
30 > collisions:0 txqueuelen:1000
31 > RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
32 > Base address:0xb080 Memory:feac0000-feae0000
33 >
34 > and I have no network access, because if I understand it right I have the
35 > IP set on a port that has no correct hardware address.
36 >
37 > For the time being I've "solved" this issue by giving the same settings to
38 > eth0 and eth1 in /etc/conf.d/net, and it works:
39 >
40 > eth0 Link encap:UNSPEC HWaddr
41 > 00-E0-81-00-00-30-BA-8D-00-00-00-00-00-00-00-00
42 > inet addr:192.168.1.52 Bcast:192.168.1.255 Mask:255.255.255.0
43 > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
44 > RX packets:0 errors:0 dropped:0 overruns:0 frame:0
45 > TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
46 > collisions:0 txqueuelen:1000
47 > RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
48 >
49 > eth1 Link encap:Ethernet HWaddr 00:E0:81:40:BF:66
50 > inet addr:192.168.1.52 Bcast:192.168.1.255 Mask:255.255.255.0
51 > inet6 addr: fe80::2e0:81ff:fe40:bf66/64 Scope:Link
52 > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
53 > RX packets:2 errors:0 dropped:0 overruns:0 frame:0
54 > TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
55 > collisions:0 txqueuelen:1000
56 > RX bytes:316 (316.0 b) TX bytes:492 (492.0 b)
57 > Base address:0xb080 Memory:feac0000-feae0000
58 >
59 >
60 > but I wonder if this is a good solution. It seems both port never are
61 > activated at the same time, but if anyone has an advice to give on this one
62 > I'd be glad to here it...
63 >
64
65 The card with the very long hardware address
66 (00-E0-81-00-00-30-BA-8D-00-00-00-00-00-00-00-00) is a firewire link.
67
68 You can rename your two interfaces with udev :
69 1 - Create a file in /etc/udev/rules.d/ (for example: 20-local.rules)
70 2 - Put the two following lines :
71 SYSFS{address}=="AB:CD:EF:12:34:56", NAME="lan0"
72 SYSFS{address}=="12:34:56:78:90:AB:CD:EF", NAME="fw0"
73
74 Of course, you must replace AB:CD:EF:12:34:56 and 12:34:56:78:90:AB:CD:EF by
75 the corresponding addresses of the cards. To do this, you can use :
76 # udevinfo -a -p /sys/class/net/eth0
77
78 Nicolas MASSE
79
80 --
81 gentoo-amd64@g.o mailing list