2-3
To do... Use the command... Remarks
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 ]
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.
Network diagram
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
Configuration procedure
When only one interface of the device is interconnected with another network segment, you can
implement network communication by configuring either a static route or default route.