[NTLUG:Discuss] Troubleshooting a network connection - fixed
David Stanaway
david at stanaway.net
Thu May 11 09:36:48 CDT 2006
The eth interfaces are assigned in the order the modules/drivers are
loaded. This is difficult to configure if you are using drivers built in
to the kernel, but it is probably alphabetical with the driver name. If
you are using modules (More than likely) then you can put in the modules
in the order that you want them in (On debian /etc/modules ) and these
should be loaded before any automatic hardware probes.
Sorry I can't help you with the sysconfig scripts. Debian has a similar
thing with its /etc/network/interfaces script and you can do some neat
things their with mapping scripts. One that springs to mind is a mac
address mapping script which maps an interface being configured to a
specific configuration eg: eth3=office-lan
LEROY TENNISON wrote:
> As usual I stumbled across the solution quite by accident (or maybe it was divine help). Noticed that the MAC address seemed different under Knoppix which led to the discovery that CentOS had selected opposite NICs for eth0 and eth1 from what Red Hat 9 used. This may be due to my starting out with only one NIC originally under RH9 and then adding the second later, it's been too long to remember. What I did was put
>
> HWADDR= ...
>
> in both ifcfg-eth0 and ifcfg-eth1 (both in /etc/sysconfig/network-scripts, this path will be different for other distros such as SuSE).
>
> This raises a couple of questions:
>
> How does Linux decide which NIC is going to be eth0, eth1, and so on?
>
> How do I tell what driver is being used for eth0 and eth1. 'ifconfig' gives me the hardware address and IP configuration but doesn't tell me what driver.
>
> Anyone know where the format of ifcfg-eth0, ifcfg-eth1 and so on is documented?
>
> Thanks for the help.
>
> _______________________________________________
> http://ntlug.pmichaud.com/mailman/listinfo/discuss
>
More information about the Discuss
mailing list