1822546 Members
2751 Online
109642 Solutions
New Discussion юеВ

HP8000 IP Routes

 
SOLVED
Go to solution
Andrew_225
Occasional Advisor

HP8000 IP Routes

We have a HP server running HP-UX on a network address of 192.168.150.10,
we also have another network running on 192.168.157.*

We want to be able to set up a route so that traffic going to the 157 network goes thru the correct gateway and hits the correct network, rather than out into internet land as it is atm.

The netstat -rv command brings back the following :

Routing tables
Dest/Netmask Gateway Flags Refs Use Interface Pmtu PmtuTime
localhost/0xffffffff
localhost UH 0 342 lo0 4608
adconew/0xffffffff
localhost UH 2 37854 lo0 4608
192.168.153.61/0xffffffff
192.168.150.2 UGHD 0 735 lan0 1500
192.168.153.199/0xffffffff
192.168.150.2 UGHD 0 6 lan0 1500
192.168.153.200/0xffffffff
192.168.150.2 UGHD 0 267 lan0 1500
192.168.153.202/0xffffffff
192.168.150.2 UGHD 1 161 lan0 1500
192.168.154.30/0xffffffff
192.168.150.2 UGHD 0 40 lan0 1500
192.168.154.32/0xffffffff
192.168.150.2 UGHD 1 750 lan0 1500
192.168.154.55/0xffffffff
192.168.150.2 UGHD 1 884 lan0 1500
192.168.154.70/0xffffffff
192.168.150.2 UGHD 1 2292 lan0 1500
192.168.156.25/0xffffffff
192.168.150.2 UGHD 2 2091 lan0 1500
192.168.156.35/0xffffffff
192.168.150.2 UGHD 1 179 lan0 1500
192.168.156.54/0xffffffff
192.168.150.2 UGHD 2 2105 lan0 1500
192.168.156.88/0xffffffff
192.168.150.2 UGHD 1 2541 lan0 1500
192.168.156.105/0xffffffff
192.168.150.2 UGHD 1 17 lan0 1500
192.168.156.107/0xffffffff
192.168.150.2 UGHD 0 0 lan0 1500
192.168.156.114/0xffffffff
192.168.150.2 UGHD 2 2172 lan0 1500
192.168.156.117/0xffffffff
192.168.150.2 UGHD 4 3917 lan0 1500
192.168.156.118/0xffffffff
192.168.150.2 UGHD 3 2653 lan0 1500
192.168.156.120/0xffffffff
192.168.150.2 UGHD 0 3471 lan0 1500
192.168.156.121/0xffffffff
192.168.150.2 UGHD 1 409 lan0 1500
192.168.156.131/0xffffffff
192.168.150.2 UGHD 2 5940 lan0 1500
192.168.156.196/0xffffffff
192.168.150.2 UGHD 1 2244 lan0 1500
192.168.156.198/0xffffffff
192.168.150.2 UGHD 0 0 lan0 1500
default/0x00000000
192.168.150.1 UG 2 98118 lan0 1500
192.168.150/0xffffff00
adconew U 0 8757 lan0 1500
192.168.157/0xffffff00
192.168.150.14 U 0 34 lan0 1500




So far we have made changes to the file in rc.config.d but the route didnt appear.

we have used a route add host 192.168.157.1 192.168.150.14 1
command and the route appeared, but we still cannot ping anything on the 192.168.157 netework.
192.168.150.14 is a gateway to the 157 network.

anyhelp cheers

Andrew
9 REPLIES 9
Naveej.K.A
Honored Contributor

Re: HP8000 IP Routes

Hi andrew,

if you want to ping the whole of the 192.168.157 network

you need to add something like
route add net 192.168.157.0 netmask 255.255.255.0 192.168.150.14 1

after giving the route add host command as mentioned in your query, are you able to ping the IP 192.168.157.1???

with best wishes
Naveej
practice makes a man perfect!!!
Andrew_225
Occasional Advisor

Re: HP8000 IP Routes

no , no packets get thru.

and if i doa traceroute to 192.168.157.1 its 1st hop is to 192.168.150.252 (another gw on our lan)
i woulda expected it to go to the 150.14 address
Naveej.K.A
Honored Contributor

Re: HP8000 IP Routes

hi again,

an entry in the /etc/rc.config.d/netconf should look something like

ROUTE_DESTINATION[1]="192.168.157"
ROUTE_MASK[1]="255.255.255.0"
ROUTE_GATEWAY[1]="192.168.150.14"
ROUTE_COUNT[1]="1"
ROUTE_ARGS[1]=""

are you able to ping the gateway....
what does traceroute 192.168.157.2 shows??

with best wishes
Naveej
practice makes a man perfect!!!
Andrew_225
Occasional Advisor

Re: HP8000 IP Routes

route add net 192.168.157.0 netmask 255.255.255.0 192.168.150.14 1
add net 192.168.157.0: gateway 192.168.150.14: entry in use

i havent managed to delete the current one either
Andrew_225
Occasional Advisor

Re: HP8000 IP Routes

ROUTE_DESTINATION[5]=192.168.157.0
ROUTE_MASK[5]="255.255.255.0"
ROUTE_GATEWAY[5]=192.168.150.14
ROUTE_COUNT[5]=1
ROUTE_ARGS[5]=""

is in the netconf file and the system has been rebooted since.


the tracertoute to 157.2 >
# traceroute 192.168.157.2
traceroute to 192.168.157.2 (192.168.157.2), 30 hops max, 20 byte packets
1 192.168.150.252 (192.168.150.252) 2 ms 2 ms 2 ms
2 192.168.150.252 (192.168.150.252) 3 ms * 3 ms
3 *
192.168.150.252 (192.168.150.252) 3 ms *
4 192.168.150.252 (192.168.150.252) 3 ms * 3 ms
5 *
192.168.150.252 (192.168.150.252) 3 ms *
6 192.168.150.252 (192.168.150.252) 3 ms * 3 ms
7 *
192.168.150.252 (192.168.150.252) 3 ms *
8 192.168.150.252 (192.168.150.252) 3 ms * 41 ms
9 *
192.168.150.252 (192.168.150.252) 4 ms *
10 192.168.150.252 (192.168.150.252) 3 ms * 3 ms
11 *
192.168.150.252 (192.168.150.252) 3 ms *
12 192.168.150.252 (192.168.150.252) 3 ms * 3 ms
13 *
192.168.150.252 (192.168.150.252) 3 ms *
14 192.168.150.252 (192.168.150.252) 3 ms * 3 ms
15 *
Naveej.K.A
Honored Contributor

Re: HP8000 IP Routes

hi,

route delete 192.168.157.0 netmask 255.255.255.0 192.168.150.14 1

should delete the route for you..

regds
Naveej
practice makes a man perfect!!!
Andrew_225
Occasional Advisor

Re: HP8000 IP Routes

# route delete 192.168.157.0 netmask 255.255.255.0 192.168.150.14 1
usage: delete destination [netmask mask] gateway
#
Naveej.K.A
Honored Contributor
Solution

Re: HP8000 IP Routes

hi
route delete net 192.168.157.0 netmask 255.255.255.0 192.168.150.14

should delete it for you.

with best wishes
naveej
practice makes a man perfect!!!
Andrew_225
Occasional Advisor

Re: HP8000 IP Routes

once i got rid of the 157.1 route , and added the suggested 192.168.157.0 it all works fine

Many thanks!