Operating System - HP-UX
1832853 Members
2967 Online
110047 Solutions
New Discussion

Re: hp-ux 10.20 - ping to different gateway

 
piyut_1
Frequent Advisor

hp-ux 10.20 - ping to different gateway

gurus,

I have problem with my hp server.I used hp-ux B.10.20 A.this server only can connect from lokal server with same subnet.I can't ping this server from my local computer that have different subnet.this server can ping to default gateway but can't ping to different gateway or other ip with different subnet, JUST ONLY CAN PING TO SAME SUBNET.the card type is ethernet. when I check with lanadmin, operation status(value) is down(2).

any thoughts for me, please!!

11 REPLIES 11
Gordon  Morrison
Trusted Contributor

Re: hp-ux 10.20 - ping to different gateway

Hi piyut,
It sounds like it's working as it's supposed to: subnets are used to keep different parts of a network seperate from each other. As you have a lan card showing as down, there must be more than one on this machine, in which case the "down" card may be on the subnet you need. Assuming this card is already configured with an IP address & netmask, try:
ifconfig up
What does this button do?
piyut_1
Frequent Advisor

Re: hp-ux 10.20 - ping to different gateway

mr gordon,

output of ifconfig lan1:
# ifconfig lan1
lan1: flags=863
inet 10.1.81.76 netmask ffffff00 broadcast 10.1.81.255
lan0 is not configured.
now, i work from putty and not in front of server.
this server still can't connect from outside!
Gordon  Morrison
Trusted Contributor

Re: hp-ux 10.20 - ping to different gateway

You'll have to configure lan0.
Talk to your Networks team and ask for an IP address you can use on the desired subnet, then add a section to /etc/rc.config.d/netconf for lan0, using the same format as for lan1, and using a unique instance number [in square brackets]. Change the values for INTERFACE_NAME[x]=lan0
IP_ADDRESS[x]=a.b.c.d
BROADCAST_ADDRESS[x]=a.b.c.255
Keep the same value for SUBNET_MASK[x] and make sure INTERFACE_STATE[x]=up

A reboot should then get it all working (hopefully)
What does this button do?
piyut_1
Frequent Advisor

Re: hp-ux 10.20 - ping to different gateway

thx mr gordon, now..i just trying.init 6 can't reboot this server???what command to reboot hp server?
Robert Salter
Respected Contributor

Re: hp-ux 10.20 - ping to different gateway

Do a man on "route", you can add a route to another gateway or ip. As for rebooting the server, as root cd to / and the 'shutdown -r'
Time to smoke and joke
Jeff Schussele
Honored Contributor

Re: hp-ux 10.20 - ping to different gateway

Whoa, whoa, pull back on those reins some.
You say you can ping the default router but no other subnet?
That sounds to me like a router issue.
The host is *not* supposed to know how to get to other subnets - that's the router's job.
It could be a misconfigured router or the router's rules prevent traffic to those subnets deliberately. In *that* case then one would need to use another NIC & connect it to the other subnet directly.
So talk to the network folks & find out just what that router's supposed to do with traffic destined for the other subnets.

My 2 cents,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Jeff Schussele
Honored Contributor

Re: hp-ux 10.20 - ping to different gateway

Another thing I should have added is that even though you can ping the default router that's no guarantee you have the default route set up properly. Run the following command

netstat -rn

and verify that you have a route labeled default & that it in fact points to that router.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
B. Hulst
Trusted Contributor

Re: hp-ux 10.20 - ping to different gateway

Hi,

Do a

netstat -r

You should have a gatewaye (letter G)
somewhere in the output.

If not then add a default gateway.

route add default 10.1.81.1

Since that is most likely your gateway host or router to the outside world.

Regards,
Bob
piyut_1
Frequent Advisor

Re: hp-ux 10.20 - ping to different gateway

gurus,

many thanks for helping me.but, until now, this server still can't connect from outside.the default gateway have flags "U", not "UG".something wrong??
I can ping to default router(10.1.81.x) and other ip with same subnet but I can't ping to other subnet.output like this:

# netstat -nr
Routing tables
Destination Gateway Flags Refs Use Interface Pmtu PmtuTime
10.1.81.76 127.0.0.1 UH 0 1834 lo0 4608
10.1.85.2 127.0.0.1 UH 0 0 lo0 4608
127.0.0.1 127.0.0.1 UH 0 294 lo0 4608
default 10.1.81.x U 0 36 lan1 1500
10 10.1.85.2 U 2 263 lan0 1500
10.1.81.0 10.1.81.76 U 2 426 lan1 1500

# ifconfig lan0
lan0: flags=863
inet 10.1.85.2 netmask ff000000 broadcast 10.255.255.255
# ifconfig lan1
lan1: flags=863
inet 10.1.81.76 netmask ffffff00 broadcast 10.1.81.255
# ping 10.1.81.x
PING 10.1.81.254: 64 byte packets
64 bytes from 10.1.81.x: icmp_seq=0. time=0. ms
64 bytes from 10.1.81.x: icmp_seq=1. time=0. ms

----10.1.81.254 PING Statistics----
2 packets transmitted, 2 packets received, 0% packet loss
round-trip (ms) min/avg/max = 0/0/0
# ping 10.1.81.19
PING 10.1.81.19: 64 byte packets
64 bytes from 10.1.81.19: icmp_seq=0. time=1. ms
64 bytes from 10.1.81.19: icmp_seq=1. time=0. ms

----10.1.81.19 PING Statistics----
2 packets transmitted, 2 packets received, 0% packet loss
round-trip (ms) min/avg/max = 0/0/1
# ping 10.2.133.86
PING 10.2.133.86: 64 byte packets

----10.2.133.86 PING Statistics----
3 packets transmitted, 0 packets received, 100% packet loss


help me plz..!!!
Florian Heigl (new acc)
Honored Contributor

Re: hp-ux 10.20 - ping to different gateway

This really sounds like an issue of the default router You're using.

Is Your local computer using the same router?

You should be able to work out the issue with the traceroute (windows:tracert) issued from both hosts toward the other.

check if the packets take the same way, and graph were they drop :)

FYI: the usual reboot command is shutdown -ry +60 (has to be issued from /), but You do not need it to resolve this.
yesterday I stood at the edge. Today I'm one step ahead.
piyut_1
Frequent Advisor

Re: hp-ux 10.20 - ping to different gateway

gurus,

I just find the solution. I must set the default router so have flags "UG"
I delete default router than add default router with ocmmand:

#route add default x.x.x.x 1

1 is count, i must set count above 0.

many thanks for you all.

thanks and regards,

-piyut-