Discussion Locked

Add a network route on a UNIX HP 9000

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

How do you add a netwrok route on an UNIX HP 9000 server..

add route ???
it's not like dos..

7 replies

by rodperd

You can use the command "route" with proper arguments to match your network needs.

A common example to add a route to a network using a external gateway is:
"route add net destination [netmask mask]gateway [count]"
Your host is 192.168.0.1 and want to reach any host in another net 192.168.1.x
Your gateway is 192.168.0.2. You can use this:
#route add net 192.168.1 netmask 255.255.255.0 192.168.0.2 1

The count 1 means you?re using another host as gateway. If your host is the gateway use0.

See complete sintax with "man route" command.

But to add a permanent static route the recommended way is to use rc configuration file that create routes at start time (valid for version 10.x e 11.x).

/etc/rc.config.d/netconf

Original file include comments and examples that are very intuitive.

If you?re using 9.x, you must include "route" command in "/etc/rc" file.

Hope this helps.
Rodrigo.

by openaloza

Run using root:

# route add target_ip_address gateway_ip_address

Ie.
# route add 10.10.10.10 10.10.10.1
This will add the route to 10.10.10.10 using gateway 10.10.10.1

If you want to delete it run route delete

This discussion is closed to new replies.