1837202 Members
2026 Online
110115 Solutions
New Discussion

setting up IP address

 

setting up IP address

I need to setup IP address to noe of My HP N-cllass server. There is no CDE on this one. How do I add IP, mask and Getway from comand pormpt.
no personal quote
9 REPLIES 9
melvyn burnard
Honored Contributor

Re: setting up IP address

take a look at the set_parms command.
man set_parms
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
melvyn burnard
Honored Contributor

Re: setting up IP address

take a look at the set_parms command.
set_parms ? will give you some help

My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Joseph C. Denman
Honored Contributor

Re: setting up IP address

use set_parms

/sbin/set_parms ip_address

then

/sbin/set_parms addl_netwrk


...jcd...
If I had only read the instructions first??
S.K. Chan
Honored Contributor

Re: setting up IP address

If you run ..
# /sbin/set_parms
it 'll return the usage which shows you you can run it with these arguments ..
hostname
timezone
date_time
root_passwd
ip_address
addl_netwrk
So you'll need to run ..
# /sbin/set_parms ip_address
and
# /sbin/set_parms addl_netwrk
Reboot will be required.
Bill McNAMARA_1
Honored Contributor

Re: setting up IP address

and to be complete you can manually edit the /etc/rc.config.d/netconf and /etc/hosts appropriately and /sbin/init.d/net stop and /sbin/init.d/net start to do it too... without the reboot..

Later,
Bill
It works for me (tm)
Hai Nguyen_1
Honored Contributor

Re: setting up IP address


set_parms is what you need to configure IP, mask... at command prompt.

Hai
Sajid_1
Honored Contributor

Re: setting up IP address

hello,

two options:
Run /sbin/set_parms
Edit the file /etc/rc.config.d/netconf file and add your entries their. You either have to reboot the system or stop and start the net daemons and inetd

gl,
learn unix ..
Sanjay_6
Honored Contributor

Re: setting up IP address

Hi,

You can use sam as a menu based interface. SAM works pretty fine with a character base emulation too. Or you can use the /sbin/set_parms from the command line.

/sbin/set_parms ip_address to set the ip address and
/sbin/set_parms addl_netwrk o set the netmask and other network parameters.

Hope this helps.

regds
John Dvorchak
Honored Contributor

Re: setting up IP address

If you really want the command line commands:

vi /etc/rc.config.d/netconf

and make you changes.

vi /etc hosts

and add the new address and fqdn there

assuming you are using lan0 as your nic to the world:

ifconfig lan0 123.123.123.123 netmask 255.255.255.0 broadcast 123.123.123.255 up

route add default 123.123.123.1 1

Of course you would replace the numbers given in the example with your valid IP address netmask etc.

If it has wheels or a skirt, you can't afford it.