3Com Switch 8800 Advanced Software V5 Configuration Guide
262 CHAPTER 26: STATIC ROUTING CONFIGURATION
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 72 Network diagram for static route configuration
Configuration procedure
1 Configuring IP addresses for interfaces (omitted)
2 Configuring 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
To do... Use the command... Remarks
View the current
configuration information
display current-configuration Available in any
view
View the brief information of
the IP routing table
display ip routing-table
View 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 [ vpn-instance vpn-instance-name
] 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