Static route configuration examples
By default, Ethernet, VLAN, and aggregate interfaces are down. Before configuring these interfaces, bring
them up using the undo shutdown command.
Basic static route configuration example
Network requirements
Figure 3 shows the IP addresses and masks of the switches and hosts. Static routes are required
for interconnection between any two hosts.
Figure 3
Network diagram for static route configuration
Configuration procedure
Configuring IP addresses for interfaces (details not shown).
1.
Configuring static routes
2.
Configure a default route on Switch A.
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.
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.
c.
<SwitchC> system-view
33