Operating System - HP-UX
1755395 Members
3304 Online
108832 Solutions
New Discussion юеВ

hosts_to_named on 10.20 server

 
Michael Cline_1
Occasional Advisor

hosts_to_named on 10.20 server

I am setting up a server to go on a network here and I've never done it before. I put the IP's in /etc/hosts and /etc/rc.config.d/netconf. I then did a hosts_to_named to get the correct named.boot in /etc. I can't ping the other server in the pair and I can't ping the router. Am I missing something here??

Thanks in advance!
Kevin
7 REPLIES 7
Stephen Keane
Honored Contributor

Re: hosts_to_named on 10.20 server

Can you ping the server/router by IP address rather than name?

Have you set up /etc/nsswitch.conf ?
Alan Meyer_4
Respected Contributor

Re: hosts_to_named on 10.20 server

Is the NIC configured withthe correct IP and netmask? What about the default gateway?
" I may not be certified, but I am certifiable... "
Alan Meyer_4
Respected Contributor

Re: hosts_to_named on 10.20 server

can the machine ping itself or localhost?
" I may not be certified, but I am certifiable... "
Michael Cline_1
Occasional Advisor

Re: hosts_to_named on 10.20 server

I rebooted the servers and was able to ping the other server and the localhost. I still cannot ping the router. We have one NIC going to the other server, which I can now ping, and one NIC going to the router, which I cannot ping. I did not change the I{ on either NIC, only in the /etc/hosts file and netconf. How do I change the IP on the NIC and why didn't I need to do this on the one going to the other server?

Thanks for the help!
Stephen Keane
Honored Contributor

Re: hosts_to_named on 10.20 server

ifconfig is your friend
Alan Meyer_4
Respected Contributor

Re: hosts_to_named on 10.20 server

you can use ifconfig to set the address

ifconfig lan# xxx.xxx.xxx.xxx netmask xxx.xxx.xxx.xxx
" I may not be certified, but I am certifiable... "
Bob_Vance
Esteemed Contributor

Re: hosts_to_named on 10.20 server

When you say you "can't ping", do you mean by *name* or by *IP address* ?

Show us a

# lanscan
# netstat -ivn
# netstat -rvn

When you changed "netconf", did you make sure that the array indices were different for the 2 lans? E.g.:

INTERFACE_NAME[0]="lan0"
IP_ADDRESS[0]="10.1.18.179"
SUBNET_MASK[0]="255.255.0.0"

INTERFACE_NAME[1]="lan1"
IP_ADDRESS[1]="192.168.0.102"
SUBNET_MASK[1]="255.255.255.0"

(( in my case here, [0] for lan0 and [1] for lan1
))


bv
"The lyf so short, the craft so long to lerne." - Chaucer