Operating System - HP-UX
1752325 Members
5157 Online
108786 Solutions
New Discussion юеВ

Re: configure network setting from command line

 
SOLVED
Go to solution
Reggie Chang
Frequent Advisor

configure network setting from command line

Hi there,

We got an old HP workstation running 10.20.
Now I can only login from command line after
the machine got powered off for quite some
time.

After login, I cannot ping other machines.
Nor can I ping the HP from other machines.
What should I re-configure the HP? We got
a DHCP router (192.168.1.1) and I plan to
assign 192.168.1.226 as the HP's IP.

Any advise is very much appreciated.

Thanks.

Reggie
5 REPLIES 5
Robert-Jan Goossens
Honored Contributor

Re: configure network setting from command line

Hi Reggie,

If the ip address has changed, the easiest way to change it on the host is to run the set_parms script.

# set_parms initial

Regards,
Robert-Jan
Ivan Krastev
Honored Contributor
Solution

Re: configure network setting from command line

Just edit /etc/rc.config/netconf and set values for IP, NETMASK, GATEWAY on desired interface.

Another option is to set it up via "sam".


regards,
ivan
Reggie Chang
Frequent Advisor

Re: configure network setting from command line

Thanks for the responses.

I've modified /etc/rc.config.d/netconf
to make the machine network accessible.

I cannot use SAM. The machine actually
has a bigger problem to display graphics.

Before changing /etc/rc.config.d/netconf,
the machine showed CDE login prompt but
displayed same login screen after attemping
login. That's why I switched to command
line prompt. (I cannot run SAM suggested
by Robert-Jan.) However, after revising
netconf, the machine keeps trying to do
something with screen showing X after reboot.

Any suggestion to resolve the problem?
Perhaps I should post to another category.

Thanks again.

Reggie
Nagashankarp
Frequent Advisor

Re: configure network setting from command line

Hi Reggie,
is the server able to ping after chaning the netconf, check netstat -rn to see if the default gateway is set for the system to get to other system, typically CDE has an issue if it cannot mount the home directory.

Gilles Allard
Advisor

Re: configure network setting from command line

To solve your CDE session problem, try first to use the "failsafe session" (under Options/Session of the login page).
If it works, then check for DNS configuration and/or hosts file. If you recently changed your IP address, your /etc/hosts file is probably not up-to-date.