1827741 Members
3047 Online
109969 Solutions
New Discussion

ip forwarding hp-ux 11i

 
SOLVED
Go to solution

ip forwarding hp-ux 11i

hello,

i am trying to configure ux 11 as gateway. i have two interfaces. withe the following routing table:

# netstat -nr
Routing tables
Destination Gateway Flags Refs Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 lo0 4136
10.121.18.100 10.121.18.100 UH 0 lan0 4136
192.168.0.1 192.168.0.1 UH 0 lan1 4136
10.121.18.0 10.121.18.100 U 2 lan0 1500
192.168.0.0 192.168.0.1 U 2 lan1 1500
127.0.0.0 127.0.0.1 U 0 lo0 0
default 10.121.18.254 UG 0 lan0 0
#

ip-forwarding is enabled:

# ndd -get /dev/ip ip_forwarding
2
#

the other machine is connected to the server via lan1.

# netstat -nr
Routing tables
Destination Gateway Flags Refs Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 lo0 4136
192.168.0.40 192.168.0.40 UH 0 lan0 4136
192.168.0.0 192.168.0.40 U 2 lan0 1500
127.0.0.0 127.0.0.1 U 0 lo0 0
default 192.168.0.1 UG 0 lan0 0
#

when i do a traceroute to the default gateway on the server:

# traceroute 10.121.18.254
traceroute to 10.121.18.254 (10.121.18.254), 30 hops max, 40 byte packets
1 ignite (192.168.0.1) 2.915 ms 0.489 ms 0.201 ms
2 * * *

on the server i do a netstat -p ip:

# netstat -p ip
ip:
1206 total packets received
0 bad IP headers
0 fragments received
0 fragments dropped (dup or out of space)
0 fragments dropped after timeout
14 packets forwarded
0 packets not forwardable
#

so he is forwarding but nothing is happening.... what am i forgetting here...
7 REPLIES 7
Oliver Stoklossa
Frequent Advisor

Re: ip forwarding hp-ux 11i

Hi Herwarth,

maybe I miss the point, but I can't find a route to be forwarded ...

You start traceroute from the server (192.168.0.1 ?), from there to the router 192.168.0.40?) with "default 192.168.0.1 UG 0 lan0 0" - which leads back to the server ... nothing which could forward to 10.121.18.x

But maybe I'm totally wrong ;)

Re: ip forwarding hp-ux 11i

no the traceroute is from 192.168.0.40 (workstation).
on the server 192.168.0.1 there is a default route to gateway 10.121.18.254
is something like gated is necessary?
Oliver Stoklossa
Frequent Advisor

Re: ip forwarding hp-ux 11i

I'm still a bit confused about the configuration. Therefore I state theoretically, what I would do:

Trace the stations step by step ... first to 192.168.0.40, then 10.121.18.100, then the final step. Maybe this could provide you with the missing part of the puzzle ...

Re: ip forwarding hp-ux 11i

server ip: 192.168.0.1 and 10.121.18.100
server default gateway: 10.121.18.254

workstation ip: 192.168.0.40
workstation default gateway: 192.168.0.1

from server:
ping 192.168.0.40 -> success
ping 10.121.18.254 -> success

from workstation:
ping 192.168.0.1 -> success
ping 10.121.18.100 -> success
ping/traceroute 10.121.18.254 -> failure
Stuart Browne
Honored Contributor
Solution

Re: ip forwarding hp-ux 11i

That's all well and good, but..

10.121.18.254

What routes does that have? In particular, what's it's default route, and/or does it have a route for '192.168.0.0/255.255.255.0' pointing back to '192.168.0.40' ?
One long-haired git at your service...

Re: ip forwarding hp-ux 11i

thank you! forgetting the most trivial part. 10.121.18.254 does not know the way back! routing changed on 10.121.18.254 and working....

i knew it was something stupid....

Re: ip forwarding hp-ux 11i

problem solved. the server was forwarding as ment to be.... problem was in client/gateway 10.121.8.254