2-3
Displaying and Maintaining Static Routes
To do... Use the command... Remarks
Display the current configuration information display current-configuration
Display the brief information of a routing table display ip routing-table
Display the detailed information of a routing
table display ip routing-table verbose
Display the information of static routes display ip routing-table
protocol static [ inactive |
verbose ]
Available in
any view
Delete all static routes delete static-routes all Available in
system view
Static Route Configuration Example
Network requirements
A small company requires that any two nodes in its office network communicate with each other, and
that the network structure be simple and stable. The company hopes that the existing devices that do
not support any dynamic routing protocol can be fully utilized.
In this case, static routes can implement communication between any two nodes.
According to the network requirements, the network topology is designed as shown in Figure 2-1.
Figure 2-1 Network diagram for static route configuration
1.1.5.2/24
Switch BSwitch A
Switch C
Host C
Host A
Host B
1.1.5.1/24
1.1.1.1/24
1.1.1.2/24
1.1.2.2/24
1.1.2.1/24 1.1.3.2/24
1.1.3.1/24
1.1.4.1/24
1.1.4.2/24