Advertisements

HP-UX – route add and route delete

To add a route in HP-UX, use the following command

root@hp-ux:/ # route add net 10.32.12.128 netmask 255.255.255.128 10.32.32.1 1
add net 10.32.12.128: gateway 10.32.32.1

And to delete a route in HP-UX, use the following command

root@hp-ux:/ # route delete net 10.32.12.128 netmask 255.255.255.128 10.32.32.1 1
delete net 10.32.12.128: gateway 10.32.32.1

To permanently add the route, add the configuration to the file /etc/rc.config.d/netconf

ROUTE_DESTINATION[7]=”10.32.12.128″
ROUTE_MASK[7]=”255.255.255.128″
ROUTE_GATEWAY[7]=”10.32.32.1″
ROUTE_COUNT[7]=”1″
ROUTE_ARGS[7]=””

Advertisements
%d bloggers like this: