Monday, December 7, 2015

How to see the default route in HP-UX? How to add default route in HP-UX ?

How to see the default route in HP-UX? How to add default route in HP-UX ?

You can make the use of the command netstat -rn and look out for the line having "default" and the Routing Flags as UG.

To add the default route you can do as below.

Assuming that the LAN interfaces are configured with IP address and the Subnet mask as suggested by the Network team as per the design of network at your place ..

To add the Route temporarily you can

1) First ping the gateway ( I assume the default GW to be set is 10.1.1.1)

ping 10.1.1.1

2) If the ping is successful ( Assuming that ICMP is not blocked from your server to the router interface) you can perform below to add the default route (gateway) temporarily.

route add net default 10.1.1.1 1

The last 1 is called the metric and is 1 for immediately connected route of the network.


To add the default gateway permanently you can make use of SAM and also that of set_parms where in you can configure the network parameters for your system.

No comments:

Post a Comment