Operating System - HP-UX
1834130 Members
2316 Online
110064 Solutions
New Discussion

Re: Change IP Address of my server

 
SOLVED
Go to solution
sreekanthtm
Trusted Contributor

Change IP Address of my server

Hai all,
I have to change IP Addr: of HPUX server from
192.200.1.8 255.255.255.0 192.200.1.255
to 192.200.1.4 255.255.255.0 192.200.1.255
Iam giving this command
#ifconfig lan0 192.200.1.4 netmask 255.255.255.0 broadcast 192.200.1.255
Is this the right way to do it. and what will happen if I restart the server.
If I change the IP Adrs: using set_parms command, will it becomes permanant (remains even after restart)

Regards
Sreekanth
9 REPLIES 9
freddy_21
Respected Contributor

Re: Change IP Address of my server

if you using ifconfig, that is temporary solution, so when you restart the server will be back to original IP


set_parms command, its the premanent way to changes your ip address


thanks
freddy
Yogeeraj_1
Honored Contributor

Re: Change IP Address of my server

hi sreekanth,

better use set_parms

otherwise the changes will not be made permanent.

hope this helps too!
kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Torsten.
Acclaimed Contributor
Solution

Re: Change IP Address of my server

Read the manual page for set_parms.

Some applications write the ip address into their own config files. In this case you will see some problems.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Jaime Bolanos Rojas.
Honored Contributor

Re: Change IP Address of my server

Sreekanthtm

You can do it by hand too:

vi /etc/rc.config.d/netconf

after it run these commands:
/sbin/init.d/net stop
/sbin/init.d/net start


Regards,

Jaime.
Work hard when the need comes out.
sreekanthtm
Trusted Contributor

Re: Change IP Address of my server

Hai all

Thank you for your reply.
Give me the syntax, with eg:

Regards
Sreekanth
Torsten.
Acclaimed Contributor

Re: Change IP Address of my server

again, "man set_parms" will answer your questions.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Jaime Bolanos Rojas.
Honored Contributor

Re: Change IP Address of my server

Sreekanthtm,

type set_parms ip_address and just follow the wizard.

Regards,

Jaime.
Work hard when the need comes out.
Yogeeraj_1
Honored Contributor

Re: Change IP Address of my server

hi,

below a snapshot of the first screen you get when using set_parms:

# set_parms ip_address
_____________________________________________________________________________

If you wish networking to operate correctly, you must assign the
system a unique Internet Protocol (IP) address. The IP address must:

* Contain 4 numeric components.

* Have a period (.) separating each numeric component.

* Contain numbers between 0 and 255.

For example: 134.32.3.10

Warning: Leading zeros within a component signify an octal number!

Your current address is 192.168.160.9. To retain this address,
just press [Enter].
_______________________________________________________________________________

Enter your IP address, then press [Enter] or press [Enter] to select
the current address (192.168.160.9):



rest is straight forward

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
sreekanthtm
Trusted Contributor

Re: Change IP Address of my server

Thank you all
My problem got solved
Once again thank you
Sreekanth