Administering TCP/IP Networks, IPMP, and IP Tunnels in Oracle® Solaris 11.2

Exit Print View

Updated: July 2014
 
 

How to Preserve the Default Route While Using IPMP

The following procedure describes how to preserve the default route when you configure IPMP.

  1. Log in to the system by using a console.

    You must use the console to perform this procedure. If you use the ssh or telnet command to log in, the connection is lost when you perform the subsequent steps.

  2. (Optional) Display the routes that are currently defined in the routing table.
    # netstat -nr
  3. Delete the route that is bound to the specific interface.
    # route -p delete default gateway-address -ifp interface
  4. Add the route without specifying an interface.
    # route -p add default gateway-address
  5. (Optional) Display the redefined routes in the routing table.
    # netstat -nr
  6. (Optional) If the information has not changed, restart the routing service, then recheck the information in the routing table to make sure the routes have been correctly redefined.
    # svcadm restart routing-setup
Example 3-3  Defining Routes for IPMP

This example assumes that the default route was defined for net0 during the installation.

# netstat -nr
Routing Table: IPv4
Destination     Gateway       Flags    Ref     Use       Interface
-------------  ------------  --------  -----  -----------  --------
default        10.153.125.1     UG      107    176682262   net0
10.153.125.0   10.153.125.222   U        22    137738792   net0

# route -p delete default 10.153.125.1 -ifp net0
# route -p add default 10.153.125.1

# netstat -nr
Routing Table: IPv4
Destination     Gateway       Flags    Ref     Use       Interface
-------------  ------------  --------  -----  -----------  --------
default        10.153.125.1     UG      107    176682262
10.153.125.0   10.153.125.222   U        22    137738792   net0