route.1m (2011 09)
r
route(1M) route(1M)
delete an indirect IPv6 (sub)network route
route inet6 delete net 2222::/64 4567::8 1
Output
add destination : gateway
gateway
The specified route is being added to the tables.
delete destination : gateway
gateway
The specified route is being deleted from the tables.
Adding Special Routes
Special routes are the routes added to reach one of the local destinations via a gateway. By default,
traffic between local-local destinations are never pushed on wire because both the end points are directly
reachable on the system.
In order to trace this local-local traffic on wire, users can alter the above default behavior. In this
scenario, traffic between two local destinations is routed to a external gateway and then it gets routed
back to the same host.
Examples:
Settings required to push the communication between two local
destination lan1 and lan2.
To push traffic destined to lan1 on wire, set force flag on lan1 using
ifconfig(1M):
ifconfig lan1 192.168.10.2 up force
Similarly set force flag on lan2:
ifconfig lan2 192.171.10.2 up force
Add a special "host/net/default" routes to each local destination via remote gateway.
Adding host routes to local destinations:
route add host 192.168.10.2 192.171.10.1 1 source 192.171.10.2 \
force
route add host 192.171.10.2 192.168.10.1 1 source 192.168.10.2 \
force
Adding net routes to local destinations:
route add net 192.168.10.0 192.171.10.1 1 source 192.171.10.2 \
force
route add net 192.171.10.0 192.168.10.1 1 source 192.168.10.2 \
force
Adding default routes to local destinations:
route add default 192.171.10.1 1 source 192.171.10.2 force
route add default 192.168.10.1 1 source 192.168.10.2 force
Flags
The values of the count and destination type fields in the route command determine the presence of the
G and H flags in the netstat -r display and thus the route type, as shown in the following table.
4 Hewlett-Packard Company − 4 − HP-UX 11i Version 3: September 2011