HowTo : Set the Hostname of 2nd NIC

Nimal ABHAYA (Metrolog) nimal at noos.fr
Tue Jun 12 13:08:10 MET DST 2001


Hi all,
        I have two network cards on my linux machine. eth0 is configured throgh adhcp server. eth1 is for my little pc-network. By default the 'hostname' command returns the hostname given by the DHCP server( the fully qualified domain name for eth0). How can I make it return the hostname of the eth1 (which I set as 'pc_lnx' in /etc/hosts) ?
        Thanks for help.
nimal at noos.fr

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserv.sap.com/pipermail/linux.general/attachments/20010612/42ac00f3/attachment.html


More information about the linux.general mailing list