254
C
26: S
HAPTER
TATIC
Displaying and
Maintaining Static
Routes
Configuration
Example
R
C
OUTING
ONFIGURATION
To do...
Associate the static
route with a track
entry
n
To configure this feature for an existing static route, simply associate the static
■
route with a track entry. For a non-existent static route, configure it and
associate it with a Track entry.
If a static route needs route recursion, the associated track entry must monitor
■
the nexthop of the recursive route instead of that of the static route;
otherwise, a valid route may be mistakenly considered invalid.
To do...
Display the current configuration
information
Display the brief information of the IP
routing table
Display the detailed information of the
IP routing table
View information of static routes
Delete all the static routes
Network requirements
The IP addresses and masks of the switches and hosts are shown in the following
figure. Static routes are required for interconnection between any two hosts.
Network diagram
Figure 68 Network diagram for static route configuration
Vlan-int300
1.1.2.3/24
Host A
1.1.2.2/24
Use the command...
ip route-static dest-address { mask | mask-length }
next-hop-address track track-entry-number
[ preference preference-value ] [ tag tag-value ]
[ description description-text ]
Use the command...
display current-configuration
display ip routing-table
display ip routing-table verbose
display ip routing-table
protocol static [ inactive |
verbose ]
delete static-routes all
1.1.6.2/24
Vlan -int100
1.1.6.1 /24
Vlan -int500
1.1.4.2 /30
Switch B
Vlan-int500
1.1.4.1/30
Switch A
Host B
Vlan- int600
1.1.5 .5/30
Vlan -int600
1 .1.5.6/30
Vlan -int900
1.1.3.1 /24
Switch C
1.1.3.2/24
Remarks
Required
Not
configured
by default
Remarks
Available in any
view
Available In
system view
Host C