Add Route on HP-UX v10.x, help.


 
Thread Tools Search this Thread
Operating Systems HP-UX Add Route on HP-UX v10.x, help.
# 1  
Old 04-05-2007
Data Add Route on HP-UX v10.x, help.

Hi,

My H-UX box has the GW pointing to 10.10.10.1 and I need add it a new route pointing to 192.168.80.x with the GW 10.10.10.13

I tried with:
#route add 192.168.80.2 255.255.255.255 10.10.10.13

but I get: add net 192.168.80.0: gateway 255.255.255.0: Network is unreachable

I tried with
#route add 192.168.80.2 10.10.10.13

netstar -rn:
192.168.80.2 10.10.10.13 UH 0 0 lan0 1500

but I can reach it, when I exec a traceroute 192.168.80.2, it uses the GW 10.10.10.1 instead of 10.10.10.13

What am I doing wrong? I've tried on WinXP and it works OK.


Thanks....
# 2  
Old 04-05-2007
I'm not sure what it is you're trying to do, you seem to have two theories. To add a route to the 192.168.80.0 network that uses 10.10.10.13, I think it is:

route add net 192.168.80.0 255.255.255.0 10.10.10.13 1

But I don't have access to a 10.x box to test it.
# 3  
Old 04-05-2007
I tried with:
#route add net 192.168.80.0 netmask 255.255.255.0 10.10.10.13 11

and it works OK.

My /etc/rc.config.d/netconf is:
------------------------------
HOSTNAME="mainsrv"
OPERATING_SYSTEM=HP-UX
LOOPBACK_ADDRESS=127.0.0.1

INTERFACE_NAME[0]="lan0"
IP_ADDRESS[0]="10.10.10.7"
SUBNET_MASK[0]="0xffffff00"
BROADCAST_ADDRESS[0]="10.10.10.255"
LANCONFIG_ARGS[0]="ether"
DHCP_ENABLE[0]=0

ROUTE_DESTINATION[0]="default"
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]="10.10.10.1"
ROUTE_COUNT[0]="1"
ROUTE_ARGS[0]=""



To add the route statically. Would it be valid?

ROUTE_DESTINATION[1]="net 192.168.80.0"
ROUTE_MASK[1]="255.255.255.0"
ROUTE_GATEWAY[1]="10.10.10.13"
ROUTE_COUNT[1]="1"
ROUTE_ARGS[1]=""
# 4  
Old 04-05-2007
I think it's:
ROUTE_DESTINATION[1]="192.168.80.0"

The script figures out net or host based on the value of this field and netmask.
# 5  
Old 04-06-2007
ok, thanks for your time...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. IP Networking

Add explicit route

Add explicit route to 10.128.255.41/32 , gateway: 10.128.201.254 if not working, please try gateway through management port: 10.128.55.254 Just want to double confirm if this would be the correct command #route add -net 10.128.255.41/32 10.128.201.254 And if didnt work #route add... (1 Reply)
Discussion started by: Thilagarajan
1 Replies

2. Solaris

Couldn't add route on Solaris 10

Hi Solaris Experts, I am trying to add a routing table entry on our 5.1 Generic_144488-12 sun4v sparc Solaris 10 SUNW,SPARC-Enterprise-T5220 so that it is possible to ping 10.56.9.34 node # netstat -rnv IRE Table: IPv4 Destination Mask Gateway Device Mxfrg Rtt Ref Flg Out In/Fwd ... (2 Replies)
Discussion started by: gjackson123
2 Replies

3. AIX

Default Route add fails

AIX version 5.3 when I try to add default gateway # route add 0 192.168.100.254 Or # route add default 192.168.100.254 I get the error 0821-275 route: socket: The file access permissions do not allow the specified action. searching on google i came across similar... (5 Replies)
Discussion started by: filosophizer
5 Replies

4. Solaris

Add route to solaris 10

I need to add a new route on solaris10 machine. I want that all traffic on the 23 port (telnet) use 192.168.200.1 gateway. How I do ? Thank you in advance. (1 Reply)
Discussion started by: arfry
1 Replies

5. Solaris

Add route to solaris10

Hi need to add 2 routes, one on each server. I know the route add comand but I have always been given the parameters to put in. I need a route in each of the 2 following servers to be able to ping and ssh between them. But how do i know which netmask to put in the route add command ? In... (6 Replies)
Discussion started by: vettec3
6 Replies

6. IP Networking

route add

I have built a new linux server, via a iLo connection. and I am trying to connect via my desktop to the server I have just built to the management port eth0 via putty. Please could some one advise how to connect to this server from my desktop. Do i need to create add a route access on the... (0 Replies)
Discussion started by: venhart
0 Replies

7. Solaris

Route Add

Hi, I am trying to add route command in Solaris 10 machine in the following fashion: route add -host 10.8.112.10 180.144.1.250 -interface lo0:1 this command fails with an error "lo0:1: bad value" I want to add a route to 10.8.112.10 that picks 180.144.1.250 as the gateway via the... (3 Replies)
Discussion started by: sudhir_shet
3 Replies

8. IP Networking

Route add probleme

I have a system that i want to reach via a vpn created vi a fierwall.The fierwall in an other system. The ip i am trying to get to is 172.16.4.48 I need to get to it via the hme1 interface. The vpn gateway has this ip 172.30.50.1 I need to clean up the routing table and make this work; or is it... (5 Replies)
Discussion started by: waterboy
5 Replies

9. IP Networking

Do I need to add a route??

I have two networks connected by cisco routers. My first subnet is 192.168.0.0 and my second is 192.168.1.0. My SCO unix machine is on the 192.168.1.0 subnet with an IP of 192.168.1.231. It can see the entire .1.0 subnet but nothing on the other network. My cicso router(gateway) to the other... (6 Replies)
Discussion started by: agoodrich
6 Replies

10. AIX

route add

Hello , We have 3 rs/6000 server's running aix on our local network, so each time I try to ping one of these servers we get a "network is down" error , I've been instructed to use to route add command which is ... #route add server.ip router.ip after this the ping command works fine ,... (6 Replies)
Discussion started by: cubicle^dweller
6 Replies
Login or Register to Ask a Question