-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 07/15/2011 07:09 PM, Timothy Murphy wrote:
Digimer wrote:
What exactly sets up the correspondence between interfaces and LANs, eg (in my case) eth1 <-> 192.168.2.0 ?
I don't see any file in /etc/sysconfig , say, where this is specified.
It's mapped using 'HWADDR' in the /etc/sysconfig/network-scripts/ifcfg-ethX and/or in /etc/udev/rules.d/70-persistent-net.rules.
As far as I can see, 70-persistent-net.rules just maps each MAC address on a machine to an interface, as also does ifcfg-ethX .
Neither seems to me to associate an interface, say eth1, to a LAN, say 192.168.2.0 .
http://wiki.alteeve.com/index.php/Changing_the_ethX_to_Ethernet_Device_Mappi...
I'll study that, thanks.
Guys, he wants to know where the IP address is set, not what determines what interface is eth1.
Now, this could be done a couple of ways. If eth1 is set to get its information from a DHCP server, then it is not set on your machine at all, but is given by the DHCP server. If you have a static IP address, then I would look in /etc/sysconfig/network-scripts/ifcfg-eth1. You should also have other configurations in the network-scripts directory. ifcfg-eth0 is the configuration for eth0.
If you want to know what all the options are, you may want to read /usr/share/doc/initscripts-9.20.2/sysconfig.txt
Mikkel - --
Do not meddle in the affairs of dragons, for thou art crunchy and taste good with Ketchup!