1752808 Members
5914 Online
108789 Solutions
New Discussion юеВ

Add Routing

 
SOLVED
Go to solution
Patrick Chim
Trusted Contributor

Add Routing

Hi everybody,

Does anyone know how a make a routing in HP-11.0 permanently ? Everytime I reboot the machine, the manually added routing will disappear ?

Many thanks !!!
Patrick
6 REPLIES 6
Wieslaw Krajewski
Honored Contributor
Solution

Re: Add Routing

Hi,

Edit file /etc/rc.config.d/netconf


ROUTE_DESTINATION[0]="default"
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]="Gateway IP Address"
ROUTE_COUNT[0]="1"
ROUTE_ARGS[0]=""

Instead of default you may specify
net IP_Address_of_Net

Can also add next sets of such lines with new indices.
Permanent training makes master
federico_3
Honored Contributor

Re: Add Routing

in /etc/rc.config.d/netconf


ROUTE_DESTINATION[0]="default"
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]="Gateway IP Address"
ROUTE_COUNT[0]="1"
ROUTE_ARGS[0]=""

federico
Vincenzo Restuccia
Honored Contributor

Re: Add Routing

In /etc/rc.config.d/netconf add:

ROUTE_DESTINATION[1]="Your_IP"
ROUTE_MASK[1]="Your_subnet"
ROUTE_GATEWAY[1]="Gateway IP Address"
ROUTE_COUNT[1]="1"
ROUTE_ARGS[1]=""

no reboot with:
/sbin/init.d/net [stop|start]
Patrick Chim
Trusted Contributor

Re: Add Routing

Hi,

If I have to add 4 routing, am I only need to change 1 to 2,3,4 and the corresponding settings ?

Patrick
Vincenzo Restuccia
Honored Contributor

Re: Add Routing

Yes, increase x and add new lines:

ROUTE_DESTINATION[x]="Your_IP"
ROUTE_MASK[x]="Your_subnet"
ROUTE_GATEWAY[x]="Gateway IP Address"
ROUTE_COUNT[x]="1"
ROUTE_ARGS[x]=""


Sprint Unix Team
Frequent Advisor

Re: Add Routing

Hi,

You can edit the /etc/rc.config.d/netconf file OR on the command line use "route add -p" option.

For more details see man pages on route on how to add route on the command line