sun.com | docs.sun.com | How To Buy | My Sun | Worldwide Sites |  |

| Previous Contents Index Next
2. ## Creating Routes for CGTP This section describes how to create routes for CGTP between two nodes, `machine A` and `machine B`. CGTP routes should not cross physical interfaces that are part of a CompactPCI network interface, IPMP group. You must configure all CGTP interfaces before configuring CGTP routes. ### To Create Routes Between Two Machines In this procedure `machine B` is the destination address or gateway. As superuser, log in to `machine A`. Create routes from `machine A` to `machine B` using the general notation:
       # route add destination-cgtp-address \
       gateway-address -multirt -setsrc src-cgtp-address
   Routes must be separately configured for each CGTP target on the network. The `-setsrc` option is used to specify a source address. For further information on the `-multirt` and `-setsrc` options, see the `route`(1M) man page in the Solaris 9 documentation set. Note that all commands for adding routes from `machine A` to `machine B` are executed on `machine A`.
       # route add 10.4.3.11 10.4.1.11 -multirt -setsrc 10.4.3.10
       # route add 10.4.3.11 10.4.2.11 -multirt -setsrc 10.4.3.10
3. Examine the routing table on `machine A`:
       # netstat -rn
   Table 3-1 gives an example of the routing table for `machine A`. Note that the two routes have the same destination address, but different gateways. Table 3-1 Sample Routing Table for `machine A`
   Destination | Gateway | Flags | Ref | Use | Interface
   --- | --- | --- | --- | --- | ---
   `10.4.3.11` | `10.4.1.11` | UGHMS | 1 | 0 |
   `10.4.3.11` | `10.4.2.11` | UGHMS | 1 | 0 |
   `10.4.2.0` | `10.4.2.10` | U | 1 | 0 | `hme1`
   `10.4.3.0` | `10.4.3.10` | U | 1 | 0 | `cgtp0`
   `10.4.1.0` | `10.4.1.10` | U | 1 | 0 | `hme0`
   `224.0.0.0` | `10.4.1.10` | U | 1 | 0 | `hme0`
   `127.0.0.1` | `127.0.0.1` | UH | 2 | 8 | `lo0`
4. The Flags column contains the letter M to indicate that the routes are marked as `multirt`. The letter S indicates that the route is declared with the `setsrc` option. The routing table provides this information to enable you to check whether your manual configuration is correct. Create routes from `machine B` to `machine A`. Note that all commands in adding routes from `machine B` to `machine A` are executed on `machine B`.
       # route add 10.4.3.10 10.4.1.10 -multirt -setsrc 10.4.3.11
       # route add 10.4.3.10 10.4.2.10 -multirt -setsrc 10.4.3.11
5. Routes must be separately configured for each CGTP target on the network, in both directions. Examine the routing table on `machine B`:
       # netstat -rn
   Table 3-2 gives an example of the routing table for `machine B`. Table 3-2 Sample Routing Table for `machine B`
   Destination | Gateway | Flags | Ref | Use | Interface
   --- | --- | --- | --- | --- | ---
   ```10.4.3.10` | `10.4.1.10` | UGHMS | 1 | 0 |
   `10.4.3.10` | `10.4.2.10` | UGHMS | 1 | 0 |
   `10.4.2.0` | `10.4.2.11` | U | 1 | 0 | `hme1`
   `10.4.3.0` | `10.4.3.11` | U | 1 | 0 | `cgtp0`
   `10.4.1.0` | `10.4.1.11` | U | 1 | 0 | `hme0`
   `127.0.0.1` | `127.0.0.1` | UH | 2 | 8 | `lo0`
2. The filtering module is now configured because routes are declared to the CGTP destination address that is filtering packets from that address. ## Disabling CGTP This section describes how to disable the CGTP interfaces, and the asssociated routes, on two machines where each machine is attached to two subnets. The CGTP interfaces that can be disabled are as follows: Virtual logical interfaces (`cgtp0:`x), where you have assigned more than one IP address to the `cgtp0` virtual physical interface, or `hme0:`x for `hme0` Virtual physical interface (`cgtp0`) ### To Disable Virtual Logical Interfaces As superuser, log in to `machine A`. Remove the routes that you set up in To Create Routes Between Two Machines:
       # route delete machine-B-cgtp-address gateway-address
3. - Use the `ifconfig` command to disable your logical interfaces. The following command disables the logical interface `hme0:1`:
         # ifconfig hme0:1 down unplumb
   - The following command disables the logical interface `cgtp0:1`:
         # ifconfig cgtp0:1 down unplumb
2. ### To Disable the Virtual Physical Interface, `cgtp0` As superuser, log in to `machine A`. Remove the routes between `machine A` and `machine B`:
       # route delete machine-B-cgtp-address gateway-address
   On `machine A`, the following commands remove the routes.
       # route delete 10.4.3.11 10.4.1.11
       # route delete 10.4.3.11 10.4.2.11
4. As superuser, log in to `machine B`. Remove routes between `machine B` and `machine A`. On `machine B`, the following commands remove the routes.
       # route delete 10.4.3.10 10.4.1.10
       # route delete 10.4.3.10 10.4.2.10
6. As superuser, log in to `machine A`. Remove the interfaces that you configured for CGTP. For example, to remove the `cgtp0` interface on `machine A`, type the following:
       # ifconfig cgtp0 down unplumb
As superuser, log in to `machine B`. Remove the interfaces that you configured for CGTP on `machine B`.
Previous Contents Index Next

Copyright 1994-2004 Sun Microsystems