Operating System - HP-UX
1836441 Members
3639 Online
110100 Solutions
New Discussion

Re: set ip address hpux11.23

 
SOLVED
Go to solution
Fauziah Mahdan
Super Advisor

set ip address hpux11.23

HI, I am newbie for network setting here. My server is RX2620. I already set the network ip at nic card but could not ping to the rest server.
Can guide me the step to set ip address?

Thanks
Fauziah
15 REPLIES 15
Arunvijai_4
Honored Contributor

Re: set ip address hpux11.23

Hi,

Use "sam" to configure network card and other things. It is very easy for newbies.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
AwadheshPandey
Honored Contributor
Solution

Re: set ip address hpux11.23

do a set_parms initial to set ur ip address.
It's kind of fun to do the impossible
Fauziah Mahdan
Super Advisor

Re: set ip address hpux11.23

Yes done, Is et from sam command at network n communication then go to NIC interface card.
Set the hostname, ip address n also subnet
connect to switch port but when I ping to the rest pc no response...
Arunvijai_4
Honored Contributor

Re: set ip address hpux11.23

Have you set gateway IP properly ?

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Hemmetter
Esteemed Contributor

Re: set ip address hpux11.23

Hi Fauziah

Check the link Status of your LAN
#( echo lan ppa 0 di ; echo q ; echo ) | lanadmin | grep Status
# replace "0" by the number of your lan

Check if your LAN-speed parameter match the settings of your switch:

# lanadmin -x 0 # for lan0
Current Speed = 100 Full-Duplex Auto-Negotiation-ON

If they don't match do
# lanadmin -X 100FD 0
# Replace 100FD and 0 by the correct values.



rgds
HGH


Fauziah Mahdan
Super Advisor

Re: set ip address hpux11.23

ok arun,
we lost that step. Not sure where to set and another thing how to get the gateway IP?
We do have so many vlan segment so this new server will set to one of the segment.

thanks
Arunvijai_4
Honored Contributor

Re: set ip address hpux11.23

Hi,

Check /etc/rc.config.d/netconf and add required information. Also, make sure you dont face any IP conflicts.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Hemmetter
Esteemed Contributor

Re: set ip address hpux11.23

Hi Fauziah

try a broadcast ping:

take the broadcast address you can find in the output of
#ifconfig lan0 # replace lan0

# ping

you should get at least two answers, from your own nic and from your gateway.
Gateway is probably the one with the lowest IP in your Subnet


rgds
HGH
Michael Steele_2
Honored Contributor

Re: set ip address hpux11.23

ping your own ip NIC from the console. If it works then the NIC is up.

ping the hostname to verify the hostname.

ping the gateway.

Verify all this in syslog and check for errors.

ping the dns server and the email server.

Note: you can always rerun set_parms from the beginning at any time and do a complete reconfiguration if you need to.
Support Fatherhood - Stop Family Law
Fauziah Mahdan
Super Advisor

Re: set ip address hpux11.23

Hia ll thanks for the feedback...
So many...:-)
one by one ya....
when I ping the server ip got reply
ping broadcast ip got reply
ipconfig lan0 appear the ip I set
ping hostname no reply (maybe wrong name fotgot rushing)
ping gateway -dunno gateway number :-(
ping email server no reply (actually different vlan)

So can conclude anything?
Maybe the port where connection pint goes to is the problem?
I will test using netbook nextweek on Monday.
Wil reply the status

many thanks
fauziah
Michael Steele_2
Honored Contributor

Re: set ip address hpux11.23

Rerun set_parms ip_address. Set_parms will automatically fill in your /etc/hosts, /etc/nsswitch and other files. Save you a lot of work. And if you have to use set_parms initial then don't worry about overwriting things like the timezone. Set_parms will take care of everything. And if you come to a question you don't know like the gateway ip then go find it before proceding. Because you'll never access this server from a PC with the gateway.

Afterwards:

ping your own nic
ping the gateway
ping the dns
ping your work station / PC, etc. This is how you become sure of your network mon ami.
Support Fatherhood - Stop Family Law
Fauziah Mahdan
Super Advisor

Re: set ip address hpux11.23

thanks.
will test using parm command after this.
BTW I already test the network port at switch using 2 win2k pc and it works. So my setting at hp-ux is the problem. 2nd time to ask where should I enter the gateway ip address at unix server?
Fabio Ettore
Honored Contributor

Re: set ip address hpux11.23

Hi Fauziah,

it's always into netconf file, check ROUTE_* entries.

Best regards,
Fabio
WISH? IMPROVEMENT!
Michael Steele_2
Honored Contributor

Re: set ip address hpux11.23



# set_parms addl_netwrk

Subnetwork Mask and Default Gateway



* Subnetwork mask

* Default gateway IP address

It will ask you: Do you wish to specify this information?

Press [y] for yes or [n] for no, then press [Enter]
Support Fatherhood - Stop Family Law
Fauziah Mahdan
Super Advisor

Re: set ip address hpux11.23

Hi all,,,,
thank you so much..Found already. Yalah using set_parms is easier.......
The new 2 servers can ping each other now. They are in the same vlan segment. I will try to ping to different segment afterward.

Thanks to all. Will open new case if got problem and will give you all highest point :-)



tadaaaaaaaaaa
thanks
Fauziah