An elementary question on LANs

Mikkel L. Ellertson mellertson at gmail.com
Sat Jul 16 01:19:15 UTC 2011


-----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_Mapping_in_EL6_and_Fedora_12%2B
> 
> 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!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAk4g5wsACgkQqbQrVW3JyMR3TACeMc1BPS3bLYVD9xt0Ax4Kru6Y
TKsAoIAmATyM+UsOqIjQJA6Kyn6aa5+i
=hlRf
-----END PGP SIGNATURE-----


More information about the users mailing list