Operating System - HP-UX
1833752 Members
2921 Online
110063 Solutions
New Discussion

How to set IP Address in B10.20

 
SOLVED
Go to solution
Henry Chua
Super Advisor

How to set IP Address in B10.20

HI GUYS,

My B10.20 just crashed, I was able to cloned from another similar server.. how do I configure the IPaddress, hostname (which is currently "gx21_hp" and will like to change it to "gx24_hp"..) I have tried using sam..but when booting.. the checklist prompted network interface (FAILED)... rc.log reveal connection failure..

In addition...what is the command to reveal my current ipaddress and use for pinging other server? thanks!

THank SO MUCH YOU FOR YOUR ADVISE!!
4 REPLIES 4
Sridhar Bhaskarla
Honored Contributor
Solution

Re: How to set IP Address in B10.20

Hi Henry,

First of all you would need to make sure that you are configuring the IP address for the correct interface. Since you cloned it from another system, you may have to simply change the IP addresses in /etc/rc.config.d/netconf file. Edit that file and change the hostname, IP address, subnetmask, default router and details of the other network interfaces if any.
Also edit /etc/hosts and correct the IP addresses and the hostnames.

Not but not the least, one of the dangers from cloning systems is that the MAC addresses may get carried from the old systems. Go to /etc/rc.config.d and grep for the lan interface from hp*conf files. For ex., if the interface is 'lan0' then do

#cd /etc/rc.config.d/
#grep lan0 hp*conf

Find out the file that has this entry in it and make sure you delete the MAC addresses portion in that file. If you found an entry, then I suggest you reboot the box. If there is no entry, enable the network configuration using the command

/sbin/init.d/net start
/sbin/init.d/net.init start

See if you can be able to ping the IP. If it doesnt' work, then post the outputs of

1. lanscan
2. netstat -in

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Sยภเl Kย๓คг
Respected Contributor

Re: How to set IP Address in B10.20

Check for /etc/rc.config.d/netconf


INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]=80.0.0.2
SUBNET_MASK[0]=255.0.0.0
BROADCAST_ADDRESS[0]=80.255.255.255
INTERFACE_STATE[0]=up
DHCP_ENABLE[0]=0


Your IP Should be assigned to the proper Interface.There shouldn't be any other issues.
regards
SK
Your imagination is the preview of your life's coming attractions
Olivier Decorse
Respected Contributor

Re: How to set IP Address in B10.20

Hi,

when i clone a 10.20 server, and want to change his address, i just modify 2 files :

1) /etc/rc.config.d/netconf - lines :
HOSTNAME=toto
IP_ADDRESS[0]=x.y.z.t
SUBNET_MASK[0]=255.255.0.0
BROADCAST_ADDRESS[0]=x.y.255.255
also, i you change your network, modify :
ROUTE_GATEWAY[0]=u.v.w.a

2) /etc/hosts It is important to not forget this file : you have to modify the hostname/ip address :
x.y.z.t toto. toto

Olivier.
They say "install windows 2k, xp or better", so i install unix !
Henry Chua
Super Advisor

Re: How to set IP Address in B10.20

THANKS GUYS.. problem solved!!