Operating System - HP-UX
1751880 Members
5310 Online
108783 Solutions
New Discussion

Adding a static route to a network in a HP9000 container

 
SOLVED
Go to solution
likid0
Honored Contributor

Adding a static route to a network in a HP9000 container

Hi,

 

I need to add static routes, to HP9000 system containers version 3.1

 

HP9KContainers A.03.01.04 HP 9000 Containers Bundle.

 

I can't see in the administration guides anything to add static routes inside the container.

 

 

I need to add for example this same static routes inside the container:

 

10.92.66.0 10.10.203.1 UG 0 lan1 1500

Network config of my container:

 

pt03c:/#netstat -ni
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll

lan0:1 1500 10.10.207.0 10.10.207.11 14765 0 27973 0 0
lan1:1 1500 10.10.203.0 10.10.203.94 502 0 491 0 0
lo0 32808 127.0.0.0 127.0.0.1 37353 0 37353 0 0

 

I can't add the route:

 

pt03c:/#route add net 10.93.108.0 netmask 255.255.255.0 10.10.203.1 1
add net 10.93.108.0: gateway 10.101.233.1: Not owner

 

Not sure how to add a static route(not default gw) with the srp command?.

 

Thanks.

Windows?, no thanks
2 REPLIES 2
likid0
Honored Contributor
Solution

Re: Adding a static route to a network in a HP9000 container

Hi,

 

This was done using the Route Source statement, put in the route source the IP of the container, and it works:

ROUTE_DESTINATION[7]="net 10.93.105.0"
ROUTE_SKIP[7]="true"
ROUTE_ARGS[7]=""
ROUTE_SOURCE[7]="10.101.1.216"
ROUTE_PARAMS[7]=""
ROUTE_GATEWAY[7]="10.101.1.1"
ROUTE_COUNT[7]="1"
ROUTE_MASK[7]="255.255.248.0"

Windows?, no thanks
jkumar
Advisor

Re: Adding a static route to a network in a HP9000 container

Hi, 

I have added those lines in netconf, in the global contianer. But how to make it available in host (non global container )

Do i need to restart the host or any commands to take this route ? netstat -rn is not showing the secondary route which i added.