Operating System - HP-UX
1827218 Members
2108 Online
109716 Solutions
New Discussion

Re: how to get back my previous IP address ??

 
Wong Yew Loon
New Member

how to get back my previous IP address ??

my HPUX server's original IP address is 192.0.0.8. However, recently I need to test out on another network, so I changed the IP address to 192.0.168.25.

But today I could not changed the IP address back to 192.0.0.8. In the SAM, it gives the warning the it is an "INVALID IP ADDRESS".

What can I do to get back to the old IP address of 192.0.0.8. My company's entire network is on 192.0.0.x range.

9 REPLIES 9
Pete Randall
Outstanding Contributor

Re: how to get back my previous IP address ??

Try:

"/sbin/set_parms ip_address"



Pete

Pete
Robert-Jan Goossens
Honored Contributor

Re: how to get back my previous IP address ??

Hi,

ux001:/sbin# set_parms
Usage: set_parms
Where can be:
hostname
timezone
date_time
root_passwd
ip_address
addl_netwrk
or initial (for entire initial boot-time dialog sequence)

Hope it helps,

Robert-Jan.
eran maor
Honored Contributor

Re: how to get back my previous IP address ??

Hi

you can allways do the changes in the config files .

edit /etc/rc.config.d/netconf and change the ip adress of your system to your ip that it was .

after that you can try to run /sbin/init.d/net stop and start ( in the console ) .
if it will not work just reboot the system
love computers
Balaji N
Honored Contributor

Re: how to get back my previous IP address ??

hi,

do a /sbin/init.d/net stop and

try changing the ip address from sam.

alternatively use set_parms network.

and then start the net service.


hth
-balaji
Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.
Berlene Herren
Honored Contributor

Re: how to get back my previous IP address ??

Don't forget to check your /etc/hosts file.

Berlene
http://www.mindspring.com/~bkherren/dobes/index.htm
Ron Cornwell
Trusted Contributor

Re: how to get back my previous IP address ??

Check that /etc/rc.config.d/nddconf is setup correctly. This matters for this like subnet mask ephemeral port range, tcp timeout and such.
Ron Cornwell
Trusted Contributor

Re: how to get back my previous IP address ??

Check that /etc/rc.config.d/nddconf is setup correctly. This matters for this like subnet mask, ephemeral port range, tcp timeout and such.
Ron Kinner
Honored Contributor

Re: how to get back my previous IP address ??

Sounds like you need to use ndd to tell it to stop checking the subnet mask. 11.0 checks to make sure your ip address does not violate an obsolete RFC. 192.0.0.x is illegal per the obsolete RFC which says you can't use the first and last subnets in a range.

ndd -set /dev/ip ip_check_subnet_addr 0

will let you reassign your old address. To ensure it stays after a reboot you need to modify /etc/rc.config.d/nddconf to add:

TRANSPORT_NAME[0]=ip
NDD_NAME[0]=ip_check_subnet_addr
NDD_VALUE[0]=0

(If you already have entries in nddconf then use the next highest integer for the number in the brackets.)

Ron
CCIL
Frequent Advisor

Re: how to get back my previous IP address ??

Hello !

make sure the sunet mask is proper , use the set_parms to change the IP address
Amit Vichare