254 CHAPTER 26: STATIC ROUTING CONFIGURATION
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.
Displaying and
Maintaining Static
Routes
Configuration
Example
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
Associate the static
route with a track
entry
ip route-static dest-address { mask | mask-length }
next-hop-address track track-entry-number
[ preference preference-value ] [ tag tag-value ]
[ description description-text ]
Required
Not
configured
by default
To do… Use the command… Remarks
To do… Use the command… Remarks
Display the current configuration
information
display current-configuration Available in any
view
Display the brief information of the IP
routing table
display ip routing-table
Display the detailed information of the
IP routing table
display ip routing-table verbose
View information of static routes display ip routing-table
protocol static [ inactive |
verbose ]
Delete all the static routes delete static-routes all Available In
system view
Vlan-int100
1.1.6.1/24
Host B
1.1.6.2/24
Vlan-int500
1.1.4.2/30
Vlan-int600
1.1.5.5/30
Vlan-int500
1.1.4.1/30
Vlan-int600
1.1.5.6/30
Vlan-int900
1.1.3.1/24
Vlan-int300
1.1.2.3/24
Host A
1.1.2.2/24
Host C
1.1.3.2/24
Switch B
Switch A
Switch C