- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- If i have two NICs and two ip address, do i need t...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2009 05:39 AM
тАО12-01-2009 05:39 AM
If i have two NICs and two ip address, do i need to have the entries for those two IPs on /etc/hosts.
or how to configure the /etc/hosts file if i have two NICs.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2009 06:05 AM
тАО12-01-2009 06:05 AM
Re: If i have two NICs and two ip address, do i need to have the entries for those two IPs on /etc/host
Now you don't have to put them /etc/hosts if you are absolutely only using DNS to resolve IP's. In that case just give the info to the network person to add them to DNS.
But I don't know why anyone would just use DNS resolution and not have it the /etc/hosts file. Most folks have nsswitching go to hostfile first then DNS. To each his own.
But I'm guessing since they were installed you really do want to use them.....
Regards,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2009 06:07 AM
тАО12-01-2009 06:07 AM
Re: If i have two NICs and two ip address, do i need to have the entries for those two IPs on /etc/host
/etc/hosts entries are not required at all.
However when missing external systems sometimese have slow connectivity, so I would do so.
Take a look at /etc/nsswitch.conf to see if files are used before DNS for host resolution.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2009 06:09 AM
тАО12-01-2009 06:09 AM
Re: If i have two NICs and two ip address, do i need to have the entries for those two IPs on /etc/host
> those two IPs on /etc/hosts.
Do you ever wish to refer to those interfaces
by name, or only by address?
> [...] how to configure the /etc/hosts file
> if i have two NICs.
man hosts
http://docs.hp.com/
http://docs.hp.com/en/B2355-60130/hosts.4.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2009 06:11 AM
тАО12-01-2009 06:11 AM
SolutionI concur with Rita. I'd specify the addresses of the server in its own '/etc/hosts' appropriately. I too configure '/etc/nsswitch.conf' to point to "files" then "DNS" to insure that a server can always resolve its own IP address to its name.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2009 08:09 AM
тАО12-01-2009 08:09 AM
Re: If i have two NICs and two ip address, do i need to have the entries for those two IPs on /etc/host
I use 1 NIC for standard internet connections, the other NIC is for a private 192 address. When making an NFS mount on the 192 network, having a separate host name removes confusion.
Fred
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2009 01:22 AM
тАО12-02-2009 01:22 AM
Re: If i have two NICs and two ip address, do i need to have the entries for those two IPs on /etc/host
The only conflict with hostname , as if you will have two hostname if you put them on /etc/hosts .
So, which one is higher priority for example when you run nslookup ? You might have a problem and you might have to some additional modifications ,probably in /etc/rc.config.d/netconf OR/AND /etc/nsswitch.conf