TCPIP$UCP_HELP.HLB  —  SET  ROUTE
    Defines a routing path in either the permanent or volatile routes
    database.

    Routes in the permanent, on-disk routes database are static.
    Static routes can be supplemented by routes that the dynamic
    routing server receives. Defaults are as follows:

    o  If the network is not active, the command affects the
       permanent database.

    o  If the network is active, the command affects the volatile
       database. (To modify the permanent database, use the
       /PERMANENT qualifier.)

    Note the following restrictions:

    o  You can add routes.

    o  You cannot use SET NOROUTE to remove a route that is
       maintained by the routing daemon.

    o  To have full manual control over your routing table, first
       issue STOP ROUTING and then use SET NOROUTE.

    o  SET NOROUTE does not require any qualifiers.

    Related commands: SHOW ROUTE, STOP ROUTING

                                   NOTE

       HP strongly recommends that you do not specify alias names
       with the destination parameter or with the /GATEWAY=host
       qualifier.

    Format

      SET [NO]ROUTE  destination

                     [ /[NO]CONFIRM ]

                     [ /DEFAULT_ROUTE ]

                     [ /GATEWAY=host ]

                     [ /MASK=mask_length ]

                     [ /NETWORK ]

                     [ /PERMANENT ]

1  –  Restrictions

    Requires OPER privilege if:

    o  The TCP/IP Services product is running.

    o  The routes database requires read and write access.

2  –  Parameters

 destination

    Required unless you specify the /DEFAULT_ROUTE qualifier.

    Host or network through which to route packets. Specify one of
    the following:

    o  A host, as it is defined in the hosts database

    o  A network, as it is defined in the networks database

    Not valid with /DEFAULT_ROUTE.

3  –  Qualifiers

3.1    /CONFIRM

       /CONFIRM
       /NOCONFIRM

    Optional. Default: /CONFIRM if you use a wildcard.

    Prompts you to confirm the change.

    If you specify the /NOCONFIRM qualifier, the operation is
    performed without asking you to confirm the request.

3.2    /DEFAULT_ROUTE

    Optional. Default: 0.0.0.0.

    Defines a second route to use if the first try to route a packet
    fails.

    You must also specify a value for /GATEWAY.

    Not valid with the destination parameter.

3.3    /GATEWAY

       /GATEWAY=host

    Optional. Default: None.

    Gateway for the route. Necessary to send packets to a host on
    another network.

3.4    /MASK

       /MASK=mask_length

    Optional. Default: None.

    Defines the Classless Inter-Domain Routing (CIDR) mask length.
    (The mask length is sometimes referred to as the prefix length.)

    CIDR is a method of associating blocks of Internet addresses
    through the use of a mask. With CIDR, a route is a combination of
    the IP address and a value describing the length of the leftmost
    contiguous set of bits.

3.5    /NETWORK

    Optional. Defaults:

    o  Destination is classified based on its Internet network class
       (A, B, or C).

    o  If the address is clearly a network number, SET ROUTE
       interprets the number correctly.

    Defines the route as a network route.

    Use this qualifier if the network number could be misinterpreted
    as an IP host address; for example, if a network mask is
    nonstandard, or if the IP address is abbreviated.

    This qualifier is required if you are creating a network route
    that specifies a CIDR mask (for example, /MASK=mask_length).

3.6    /PERMANENT

    Optional. Defaults:

    If the network is not active, the permanent routes database is
    changed. If the network is active, the volatile routes database
    is changed.

    Changes only the permanent routes database.

4  –  Examples

    1.TCPIP> SET ROUTE DODO /GATEWAY=RHEA

      Defines a route for local host DODO to send packets.

    2.TCPIP> SET ROUTE 101.81 /GATEWAY=100.42

      Defines a gateway for routing packets for the host with IP
      address 101.81.

    3.TCPIP> SET ROUTE 100.45.0 /GATEWAY=REMOTE /NETWORK

      Sets a route through the network whose IP address is 100.45.0.

    4.TCPIP> SET ROUTE /DEFAULT /GATEWAY=DEFGATE /PERMANENT

      Sets a default route with host DEFGATE as the default gateway.
      Adds the definition to the permanent routes database.
Close Help