2 NICs--One Hostname

Alexander Dalloz ad+lists at uni-x.org
Sun Jul 10 14:30:51 UTC 2005


Am So, den 10.07.2005 schrieb Eric Hines um 16:24:

> I'm running FC3 on an Intel server that has two NICs on the 
> motherboard.  I'm trying to give the two NICs separate hostnames and 
> separate DNS IPs and DNS search paths (one NIC (eth0) is intended to 
> face the Net; the other (eth1) will run a LAN that is not intended to 
> have any contact with the Net.  Eth1 has a static IP address, and eth0 
> gets its automatically.)  However, system-config-network will only allow 
> me to assign one hostname to both NICs, presumably because 
> system-config-network writes these data to the same /etc/resolv.conf.
> 
> Does anyone have any way to work around this?

> Eric Hines

A host has 1 hostname. What is set as HOSTNAME= in
/etc/sysconfig/network reflect in /etc/hosts. For the second NIC / IP
set an additional line in /etc/hosts so that you can reach the address
by name. If you run a DNS server then enter the additional name and IP
in it's forward and reverse zone files.

Alexander


-- 
Alexander Dalloz | Enger, Germany | GPG http://pgp.mit.edu 0xB366A773
legal statement: http://www.uni-x.org/legal.html
Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.11-1.35_FC2smp 
Serendipity 16:28:02 up 14 days, 23:20, load average: 0.18, 0.19, 0.12 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20050710/f2e4d7b3/attachment-0001.sig>


More information about the fedora-list mailing list