General discussion

Locked

Add a network route on a UNIX HP 9000

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

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

This conversation is currently closed to new comments.

7 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Add a network route on a UNIX HP 9000

by RodPerd In reply to Add a network route on a ...

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.

Collapse -

Add a network route on a UNIX HP 9000

by jjaurigue In reply to Add a network route on a ...

The question was auto-closed by TechRepublic

Collapse -

Add a network route on a UNIX HP 9000

by ghislain.levesque In reply to Add a network route on a ...

Hi, you could try this command:

route add net default IP ADDRESS OF GATEWAY 1

This should do it

Ciao

Collapse -

Add a network route on a UNIX HP 9000

by jjaurigue In reply to Add a network route on a ...

The question was auto-closed by TechRepublic

Collapse -

Add a network route on a UNIX HP 9000

by openaloza In reply to Add a network route on a ...

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

Collapse -

Add a network route on a UNIX HP 9000

by jjaurigue In reply to Add a network route on a ...

The question was auto-closed by TechRepublic

Collapse -

Add a network route on a UNIX HP 9000

by jjaurigue In reply to Add a network route on a ...

This question was auto closed due to inactivity

Back to Linux Forum
7 total posts (Page 1 of 1)  

Related Discussions

Related Forums