Operating System - HP-UX
1835251 Members
2325 Online
110078 Solutions
New Discussion

Re: Adding routes in 11.11

 
SOLVED
Go to solution
MikeL_4
Super Advisor

Adding routes in 11.11

Not being a network person I am confused on how to setup the netconf file for this request.

we want 10.0.0.0 and 155.90.0.0 to go out the Admin interface through 155.90.114.225 router

The Admin interface is coded as:

INTERFACE_NAME[1]=lan1
IP_ADDRESS[1]=155.90.17.101
SUBNET_MASK[1]=255.255.255.224
BROADCAST_ADDRESS[1]=155.90.17.127
INTERFACE_STATE[1]=up
DHCP_ENABLE[1]=0

and the only current route is:

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

I'm not sure how to code the additional route statements to accomplish this..

Thanks


2 REPLIES 2
Sundar_7
Honored Contributor
Solution

Re: Adding routes in 11.11

ROUTE_DESTINATION[1]=10.0.0.0
ROUTE_MASK[1]=""
ROUTE_GATEWAY[1]=155.90.114.225
ROUTE_COUNT[1]=1
ROUTE_ARGS[1]=""

ROUTE_DESTINATION[2]=155.90.0.0
ROUTE_MASK[2]=""
ROUTE_GATEWAY[2]=155.90.114.225
ROUTE_COUNT[2]=1
ROUTE_ARGS[2]=""

I believe this will do.
Learn What to do ,How to do and more importantly When to do ?
Mel Burslan
Honored Contributor

Re: Adding routes in 11.11

What Sundar gave above will get the routes permanently for the next time you reboot your system. After adding these routes, you either need to stop and restart your networking by

/sbin/init.d/net stop
/sbin/init.d/net start

or just introduce these routes dynamically by

route add net 10.0.0.0 155.90.114.225 1
route add net 155.90.0.0 155.90.114.225 1

hope this helps
________________________________
UNIX because I majored in cryptology...