1832188 Members
2875 Online
110038 Solutions
New Discussion

IP address Change

 
samir_24
Occasional Contributor

IP address Change

Hi All,
I have HP-UX 11.00 server with 4 lan interfaces, I changed an IP address of one of them.
the server become very slow and the telnet session take about 10 min. to open - (I telnet the server through another interface attached to my lan rather than the changed interface).
when I change back the old ip address of this interface , everything was OK.
can any one tell me why this problem happened.
Another Problem....
after reboot. non of the following network commands work !!!!

# sam
sh: sam: not found.
# lanadmin
sh: lanadmin: not found.
# ping
sh: ping: not found.
# ifconfig
sh: ifconfig: not found.

Can anyone Help ????

Thanks in Advance.
6 REPLIES 6
Borislav Perkov
Respected Contributor

Re: IP address Change

Hi,
First try to locate the lanadmin command with:

find / -name lanadmin -print

If it does not exist then somehow it is deleted.

Regards.
Mauro Gatti
Valued Contributor

Re: IP address Change

Another way you can use to change IP to your lan card is editing file /etc/rc.config.d/netconf
In this file you can also set default gw and other parameters for your lan card.
Then to apply changes do
/sbin/init.d/net stop; /sbin/init.d/net start
and check your netstat -nr otuput to see if it's all right.

RGDS

Mauro
Ubi maior, minor cessat!
Muthukumar_5
Honored Contributor

Re: IP address Change

Did you check the ping status of first changed IP-Address. It may be in use in your network. If you use that,it will bind that ip-address with other machine and try to send the send the data's to that ip-address.

Get the all ip-address in ur machine using netstat -in. You can use vsar command to view the performance rate of ip-address else use sar.

Second problem is because of user permission. We have to use default full path of system command as,

/usr/sbin/ifconfig lan0
/usr/sbin/ping
Easy to suggest when don't know about the problem!
Rita C Workman
Honored Contributor

Re: IP address Change

Before really trying to answer...Maybe it would be helpfule to know exactly what steps you did to change the IP ?
....cause your subsequent errors,if all you did was a simple IP change, are 'interesting'....

Rita


Geoff Wild
Honored Contributor

Re: IP address Change

sam - not found?

Sounds like not all file systems are mounted...in particular /usr

sam is: /usr/sbin/sam

How are you changing the ip? is it lan0?

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Guillermo Girón
Occasional Contributor

Re: IP address Change

with the user root

1. cd /usr/sbin
2. ./sam