3Com Switch 7750 Configuration Guide Guide
270 CHAPTER 31: STATIC ROUTE CONFIGURATION
Configuration procedure
n
Before the following configuration, make sure that the Ethernet link layer works
normally and the IP addresses of the VLAN interfaces have been configured
correctly.
# Configure static routes on Switch A.
<SwitchA>system-view
[SwitchA] ip route-static 1.1.3.0 255.255.255.0 1.1.2.2
[SwitchA] ip route-static 1.1.4.0 255.255.255.0 1.1.2.2
[SwitchA] ip route-static 1.1.5.0 255.255.255.0 1.1.2.2
# Configure static routes on Switch B.
<SwitchB>system-view
[SwitchB] ip route-static 1.1.2.0 255.255.255.0 1.1.3.1
[SwitchB] ip route-static 1.1.5.0 255.255.255.0 1.1.3.1
[SwitchB] ip route-static 1.1.1.0 255.255.255.0 1.1.3.1
# Configure static routes on Switch C.
<SwitchC>system-view
[SwitchC] ip route-static 1.1.1.0 255.255.255.0 1.1.2.1
[SwitchC] ip route-static 1.1.4.0 255.255.255.0 1.1.3.2
# Configure the default gateway of Host A to 1.1.5.1.
[SwitchA] ip route-static 0.0.0.0 0.0.0.0 1.1.5.1
# Configure the default gateway of Host B to 1.1.4.1.
[SwitchB] ip route-static 0.0.0.0 0.0.0.0 1.1.4.1
# Configure the default gateway of Host C to 1.1.1.1.
[SwitchC] ip route-static 1.1.1.0 255.255.255.0 1.1.1.1
Now, all the hosts/switches in the figure can interconnect with each other.
Troubleshooting a
Static Route
Symptom: The switch is not configured with a dynamic routing protocol. Both the
physical status and the link layer protocol status of an interface are UP, but IP
packets cannot be normally forwarded on the interface.
Solution: Perform the following procedure.
Use the display ip routing-table protocol static command to view whether the
corresponding static route is correctly configured.
Use the display ip routing-table command to view whether the static route is
valid.