Re: An elementary question on LANs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----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-----
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux