3Com 3.01.01 Switch User Manual


 
70 CHAPTER 5: IP ROUTING PROTOCOL OPERATION
Example: Typical Static
Route Configuration
As shown in the Figure 3, the masks of all the IP addresses in the figure are
255.255.255.0. All the hosts or switches must be interconnected in pairs, by
configuring static routes.
Figure 3 Static Route Configuration
1 Configure the static route for Switch A:
[Switch A]ip route-static 1.1.3.0 255.255.255.0 1.1.2.2
[Switch A]ip route-static 1.1.4.0 255.255.255.0 1.1.2.2
[Switch A]ip route-static 1.1.5.0 255.255.255.0 1.1.2.2
2 Configure the static route for Switch B:
[Switch B]ip route-static 1.1.2.0 255.255.255.0 1.1.3.1
[Switch B]ip route-static 1.1.5.0 255.255.255.0 1.1.3.1
[Switch B]ip route-static 1.1.1.0 255.255.255.0 1.1.3.1
3 Configure the static route for Switch C:
[Switch C]ip route-static 1.1.1.0 255.255.255.0 1.1.2.1
[Switch C]ip route-static 1.1.4.0 255.255.255.0 1.1.3.2
4 Configure the default gateway of the Host A to be 1.1.5.2
5 Configure the default gateway of the Host B to be 1.1.4.1
View the route filtered through specified basic
access control list (ACL)
display ip routing-table acl { acl-number |
acl-name } [ verbose ]
View the route information that through
specified ip prefix list
display ip routing-table ip-prefix
ip-prefix-number [ verbose ]
View the routing information found by the
specified protocol
display ip routing-table protocol protocol [
inactive | verbose ]
View the tree routing table display ip routing-table radix
View the integrated routing information display ip routing-table statistics
Table 5 Displaying and Debugging the Routing Table
Operation Command
A
B
C
Host 1.1.1.1
Host 1.1.4.2
Host 1.1.5.1
Switch A
Switch B
Switch C
1.1.1.2/24
1.1.2.1/24
1.1.5.2/24
1.1.3.1/24
1.1.3.2/24
1.1.4.1/24