![H3C S5500-EI series Configuration Manual Download Page 29](http://html2.mh-extra.com/html/h3c/s5500-ei-series/s5500-ei-series_configuration-manual_3726960029.webp)
12
Static route configuration examples
Basic static route configuration example
Network requirements
The IP addresses and masks of the switches and hosts are shown in
. Static routes are required
for interconnection between any two hosts.
Figure 2
Network diagram
Configuration procedure
1.
Configure IP addresses for interfaces. (Details not shown)
2.
Configure static routes.
# Configure a default route on Switch A.
<SwitchA> system-view
[SwitchA] ip route-static 0.0.0.0 0.0.0.0 1.1.4.2
# Configure two static routes on Switch B.
<SwitchB> system-view
[SwitchB] ip route-static 1.1.2.0 255.255.255.0 1.1.4.1
[SwitchB] ip route-static 1.1.3.0 255.255.255.0 1.1.5.6
# Configure a default route on Switch C
<SwitchC> system-view
[SwitchC] ip route-static 0.0.0.0 0.0.0.0 1.1.5.5
3.
Configure the hosts.
The default gateways for hosts A, B, and C are 1.1.2.3, 1.1.6.1 and 1.1.3.1, respectively. The configuration
procedure is not shown.
4.
Display the configuration.
# Display the IP routing table of Switch A.
[SwitchA] display ip routing-table
Routing Tables: Public
Destinations : 7 Routes : 7