Specifications
2-11
Cisco MGX 8260 Command Line Interface Guide
Release 1.2, Part Number 78-10987-01 Rev. B0, January, 2002
Chapter 2 System Management
Configuration Tasks for System Initialization
To view all IP routes, use the lsiproutes command.
The system displays the current route information:
================================================================
IP Routes (lsiproutes)
================================================================
Destination Gateway IF Mask
=============== =============== ====== ================
0.0.0.0 192.168.38.1 1 0.0.0.0
192.168.38.0 192.168.38.221 1 255.255.255.0
192.168.39.0 192.168.39.221 2 255.255.255.0
192.168.40.0 192.168.40.221 3 255.255.255.0
192.168.41.0 192.168.41.1 1 255.255.255.0
192.168.50.0 192.168.50.1 1 255.255.255.0
For a description of the output, refer to the description of the lsiproute command in the previous
section.
Adding IP Routes
You can add a static route to destinations other than the default gateway.
To add an IP route, follow these steps:
Step 1 Type the addiproute command, specifying the destination address, next hop, and subnet mask.
Step 2 Verify the route addition using the lsiproutes command.
Displayed Information Description
Destination The destination IP address.
Gateway The gateway, or next hop, for the route.
IF The interface identifier:
1—Primary Ethernet port
2—Secondary Ethernet port
3—In-band path
Mask The subnet mask for the route.
Type The type of route, such as direct or indirect
Protocol The protocol type, such as local or other.
Age The age of the route is seconds.
Mib Information The version of the MIB associated with the interface.
Metric 1-5 The primary and alternate route metrics. These are specific to the
protocol type, but -1 indicates not used.