1832796 Members
2672 Online
110045 Solutions
New Discussion

Re: IP address change.

 
SOLVED
Go to solution
Joseph Chakkery
Valued Contributor

IP address change.

I am an infant in Unix world so I need ur valuable help.
My network administrator wants to change the ip address of my HP machine from 128.x.x.x to 195.x.x.x
My doubt is this possible? If so can i do it from SAM. What precautions I have to take ?
Whether I have to do it single user mode?

Thanks in advance.

Regards
Joe.
Knowledge is wealth
7 REPLIES 7
Alex Glennie
Honored Contributor
Solution

Re: IP address change.

If it were me I'd just run from the command line :

set_pams ip_address

Precautions : ensure its a valid IP address and make sure it resolves both forwards and backwards wrt ip address and hostname, especially if using DNS.

applications such as ITO and Omniback often require special consideration wrt backup schedules, licensing etc ....
Robin Wakefield
Honored Contributor

Re: IP address change.

Hi Joe,

HP have a script for doing this:

/sbin/set_parms ip_address

If you're running NIS, files in /var/yp may also contain the IP address - check first.

Robin.
Vincenzo Restuccia
Honored Contributor

Re: IP address change.

#set_parms ip_address
SAM->Network and interface card
#vi /etc/hosts,/etc/rc.config.d/netconf,/sbin/init.d/net stop|start
Printaporn_1
Esteemed Contributor

Re: IP address change.

yep , you can do it in sam
- make sure that no network application running
- goto sam -> networking and communication -> network interface card
- select card , action -> modify
- change IP address.

-----------
normally sam will update /etc/hosts
but please check for make sure

-----------
if you don't want to use sam , can change in /etc/rc.config.d/netconf
change to new IP , and manually change /etc/hosts
enjoy any little thing in my life
Alexander M. Ermes
Honored Contributor

Re: IP address change.

Hi there.
You can do it with sam. But do yourself a favour. Check the software on your system. whether it is refering to the old IP adress
( OmniBack II Vers. 3.0 and higher license string etc ).
What you can do to keep your old ip adress :
go to /etc/rc.config.d. Check the netconf file.
You will find a piece like this for the interface you want to change :

INTERFACE_NAME[0]="lan0"
IP_ADDRESS[0]="192.168.127.1"
SUBNET_MASK[0]="255.255.255.0"
BROADCAST_ADDRESS[0]="192.168.127.255"
INTERFACE_STATE[0]=""
DHCP_ENABLE[0]=0

copy these lines after this piece and make them comment with the '#' sign.
The original lines will be changed by sam, when you change the ip-adress.
So you have your old data of the interface just in case it won't work with the new ip adress.


Rgds
Alexander M. Ermes
.. and all these memories are going to vanish like tears in the rain! final words from Rutger Hauer in "Blade Runner"
Ravi_8
Honored Contributor

Re: IP address change.

Hi,

No harm in changing the IP address and no need to get into single user mode. and many ways to change the IP address.

#set_parms ip_address.
or
# vi /etc/rc.config.d/netconf in this file replace the new IP with existing IP and reboot the machine.
or
SAM-->Networking and Communication-->Network interface-->action-->modify

never give up
Joseph Chakkery
Valued Contributor

Re: IP address change.

Thanks to all for ur valuable advise.

Regards
Joe.
Knowledge is wealth