Operating System - HP-UX
1836599 Members
2308 Online
110102 Solutions
New Discussion

Re: whyt changed the hosts and netconf file, system hang on booting HP-UX?

 
Nam_1
New Member

whyt changed the hosts and netconf file, system hang on booting HP-UX?

Hi everyone ,

when i change the hosts file name and
add a default gateway in the netconf file
for internet access , why the HP-UX hang up at the mail service for over 15min ? and can't get into the CDE ?

or what method can make the hp-ux to the internet ?

thx a lot first !
8 REPLIES 8
RAC_1
Honored Contributor

Re: whyt changed the hosts and netconf file, system hang on booting HP-UX?

Changing the host name online may cause problems to applications. Applications like CDE depend heavilly on host name resolution.

For connecting hp-ux to inetrnet, you may choose pppd.
There is no substitute to HARDWORK
Nam_1
New Member

Re: whyt changed the hosts and netconf file, system hang on booting HP-UX?

But i change the hosts name without cable ,
and the major is in the netconf file , after i add the default gateway ip save and reboot , it boot up at the mail service just busy and wait ...
after a long time go into console , when i try to change to previous conf , just no screen !!

it is a workstation HP J6700.

thx
Biswajit Tripathy
Honored Contributor

Re: whyt changed the hosts and netconf file, system hang on booting HP-UX?

I'm assuming that, while reboot, your system
shows "busy" staus for "Configuring the
mail" and hangs there till it times out.
Looks like either your interfaces are not
configured properly, or the routing table is
not fine. When the system boots up, make sure
that the interfaces are up (by running
ifconfig). See the routes by running "netstat
-nr". try to ping each of the entries in the
routing table.

My guess is, you did not change the hostname
properly and at all places. To be safe, use
SAM to change the hostname (in SAM ->
"Networking").

- Biswajit
:-)
Ramaprasad N
Honored Contributor

Re: whyt changed the hosts and netconf file, system hang on booting HP-UX?

You can use the 'setparms -initial' command as well, to change the network configuration using a CLI. This is safe to use, as it will reduce the risk of human errors.
Nam_1
New Member

Re: whyt changed the hosts and netconf file, system hang on booting HP-UX?

Thx for all given,
This may be use more time to try it....

If i want to access to the internet , is it config the following file is ok?

1. hosts file (ip and hosts name)
2. resolv.conf (name server ip)
3. netconf (default gateway)

Or any other method (in command line)?

Thx
Stuart Abramson
Trusted Contributor

Re: whyt changed the hosts and netconf file, system hang on booting HP-UX?

Somebody suggested it above:
1. Use SAM - it will set up the right stuff.
2. Use setparms. It also will set you up completely.
Victor Fridyev
Honored Contributor

Re: whyt changed the hosts and netconf file, system hang on booting HP-UX?

Hi,

If you have changed hostname in /etc/rc.config.d/netconf and have not done this in /etc/hosts, you will have the exact problem. Please ensure that the hostname is defined equaly in both these places.
Also you can do this with the command
/etc/set_parms network
Additionally update DNS accordingly.

HTH
Entities are not to be multiplied beyond necessity - RTFM
Nam_1
New Member

Re: whyt changed the hosts and netconf file, system hang on booting HP-UX?

Thx stuart and victor,

The hostname in both files are correct , that day i add the default gateway in netconf only , nothing change in hosts file .
Because the workstation is my friend , less time to try it . Anyway thx for all reply !!