Re: Two NICs



Anton Ertl staggered into the Black Sun and said:
robertharvey@xxxxxxxxxxx writes:
I know it can get confusing. My asus motherboard has two, and the
windows "enumerator" supplied occasionally swaps them over when you
reboot. Linux is fine. The one marked "1" on the back is always
eth0, and the one marked "2" is eth1.
Lucky you. We have machines where Linux assigns the numbers
differently at different times. IIRC we get different assignments
with different kernels, but sometimes also with the same kernel.
There are ways to deal with this (IIRC based on coldplug stuff), not
sure what we are doing.

/etc/udev/rules.d/70-persistent-net.rules :

# PCI device 0x8086:0x4220 (ipw2200)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:13:4e:59:6d:61",
NAME="eth1"
# PCI device 0x8086:0x101e (e1000)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:10:f2:ca:85:e2",
NAME="eth0"

....although this is less necessary in this case because the NICs are
controlled by different modules. Without the udev rules above, you
could assign names by module loading order. If you have 2 NICs driven
by the same module, then IIRC they get assigned names based on the order
they're found on the PCI bus if there are no udev/whatever rules. HTH,

--
...they believe if something can't be proven to exist, it shouldn't
exist. They have an elegant proof that smoking piles of rubble exist
and are fond of invoking it. --Triangle & Robert
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
.



Relevant Pages

  • Re: Kerberos with LDAP backend / Replace active directory
    ... Yes, and iirc, one comes with Heimdal package ... So I now have it all working from a Linux point of view. ... Now the only problem is that I don't get a kerberos ticket when logging ... Note that even current stock Samba does support Kerberos auth from ...
    (Debian-User)
  • Re: gebraucht Notebook Empfehlung (Desktop Ersatz)
    ... Als OS kommt ausschliesslich Linux ... und der ATI Grafik. ... IIRC sind die Antennenkabel ziemlich kurz. ...
    (de.comp.sys.notebooks)
  • Re: (Uhr-)Synchonisation =?ISO-8859-15?Q?=FCber_=28S=29NTP?=
    ... IIRC waren NTP-Client und -Server bei OS/2 idR portierte ... Hochlast war Linux sinnvoller. ...
    (de.rec.fotografie)
  • Re: gebraucht Notebook Empfehlung (Desktop Ersatz)
    ... Bei Ebay werden ja zur Zeit massig HP Compaq NC6000 angeboten, es erfüllt fast alle meine Anforderungen, bis auf das Display mit 14.1" und der ATI Grafik. ... Im Akkubetrieb schaltet es zunaechst auf die Minimum-Einstellung, aber man kann die Helligkeit per Tastenkombination wieder voll aufdrehen (geht auch unter Linux). ... ATI Mobility Radeon 9000 mit 64MB dediziertem Speicher. ... Achte auch darauf, dass sich die Buchse in der richtigen Ecke befindet, IIRC sind die Antennenkabel ziemlich kurz. ...
    (de.comp.sys.notebooks)
  • Re: PCI resources
    ... > I've got a problem here porting a linux driver for a PCI device to some ... > the PCI configuration space header? ... it is chapter 15 from linux device driver book..... ...
    (comp.os.linux.development.system)