On Wednesday 15 February 2006 21:23, Thierry de Coulon wrote:
> Hello, I'm back :)

Hello

> So, I've again installed gentoo 64bit on my double opteron. So far I ma
> past the basic install, emerging alsa, X and KDE, koffice, xine, as well as
> OpenOffice.org 32 bit and mplayer 32. All is working well.
>
> I've got one problem (as previously) with my network card. It seems my
> motherboard (Tyan k8w 2875ANRF) has got TWO ethernet ports (the motherboard
> handbooks speaks of a jumper to enable/disable "both ports"), although
> there is but ONE connector - anyway, the problem is that that while Gentoo
> mostly identifies the first port as Ethernet, it sometimes jumps on the
> second. ifconfig -a then reports the following:
>
>  eth0      Link encap:UNSPEC  HWaddr
> 00-E0-81-00-00-30-BA-8D-00-00-00-00-00-00-00-00
>           inet addr:192.168.1.52  Bcast:192.168.1.255  Mask:255.255.255.0
>           UP BROADCAST RUNNING 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)
>
> eth1      Link encap:Ethernet  HWaddr 00:E0:81:40:BF:66
>           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)
>           Base address:0xb080 Memory:feac0000-feae0000
>
> and I have no network access, because if I understand it right I have the
> IP set on a port that has no correct hardware address.
>
> For the time being I've "solved" this issue by giving the same settings to
> eth0 and eth1 in /etc/conf.d/net, and it works:
>
> eth0      Link encap:UNSPEC  HWaddr
> 00-E0-81-00-00-30-BA-8D-00-00-00-00-00-00-00-00
>           inet addr:192.168.1.52  Bcast:192.168.1.255  Mask:255.255.255.0
>           UP BROADCAST RUNNING 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)
>
> eth1      Link encap:Ethernet  HWaddr 00:E0:81:40:BF:66
>           inet addr:192.168.1.52  Bcast:192.168.1.255  Mask:255.255.255.0
>           inet6 addr: fe80::2e0:81ff:fe40:bf66/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:2 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:316 (316.0 b)  TX bytes:492 (492.0 b)
>           Base address:0xb080 Memory:feac0000-feae0000
>
>
> but I wonder if this is a good solution. It seems both port never are
> activated at the same time, but if anyone has an advice to give on this one
> I'd be glad to here it...
>

The card with the very long hardware address 
(00-E0-81-00-00-30-BA-8D-00-00-00-00-00-00-00-00) is a firewire link.

You can rename your two interfaces with udev :
1 - Create a file in /etc/udev/rules.d/ (for example: 20-local.rules)
2 - Put the two following lines :
SYSFS{address}=="AB:CD:EF:12:34:56", NAME="lan0"
SYSFS{address}=="12:34:56:78:90:AB:CD:EF", NAME="fw0"

Of course, you must replace AB:CD:EF:12:34:56 and 12:34:56:78:90:AB:CD:EF by 
the corresponding addresses of the cards. To do this, you can use :
# udevinfo -a -p /sys/class/net/eth0

Nicolas MASSE

-- 
[email protected] mailing list

Reply via email to