Configuration manual
Testing Network Connectivity
Fixed Switch Configuration Guide 20-5
Configuring Static Routes
Procedure 20-3 lists the commands to configure a static route.
The following example configures a static route in routing mode and then displays the IP routing
table.
C5(su)->router(Config)#ip route 9.9.9.248 255.255.255.248 61.168.4.254
C5(su)->router(Config)#show ip route
Codes: C - connected, S - static, R - RIP, O - OSPF, IA - OSPF interarea
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
E - EGP, i - IS-IS, L1 - IS-IS level-1, LS - IS-IS level-2
* - candidate default, U - per user static route
E1 2.2.1.0/24 [110/31] via 61.168.4.254, Vlan 1600
E2 3.3.3.0/24 [110/20] via 61.168.4.254, Vlan 1600
S 9.9.9.248/29 [99/0] via 61.168.4.254, Vlan 1600
E2 11.11.11.240/28 [110/14] via 61.168.4.254, Vlan 1600
E2 12.12.12.252/30 [110/9] via 61.201.161.198, Vlan 3041
C 30.1.1.0/24 [0/1] directly connected, Vlan 300
C 30.1.2.0/24 [0/1] directly connected, Vlan 301
C 30.1.3.0/24 [0/1] directly connected, Vlan 302
E2 61.0.0.1/32 [110/20] via 61.33.9.8, Vlan 3398
S 61.1.128.0/17 [1/0] via 61.168.4.254, Vlan 1600
S 61.2.0.0/15 [1/0] via 61.33.9.8, Vlan 3398
N2 61.5.1.1/32 [110/20] via 61.201.1.30, Vlan 3210
C 61.15.0.0/21 [0/1] directly connected, Vlan 115
E2 61.19.0.0/30 [110/9] via 61.201.161.198, Vlan 3041
O 61.21.21.0/30 [110/11] via 61.33.9.8, Vlan 3398
O 61.24.24.0/24 [110/20] via 61.201.161.198, Vlan 3041
E2 61.31.0.0/16 [110/20] via 61.33.9.8, Vlan 3398
C 61.33.9.0/28 [0/1] directly connected, Vlan 3398
E2 61.35.22.0/24 [110/20] via 61.201.161.198, Vlan 3041
E2 61.35.23.0/24 [110/20] via 61.168.4.254, Vlan 1600
O 61.50.0.0/29 [110/20] via 61.201.161.198, Vlan 3041
O 61.51.0.0/29 [110/11] via 61.33.9.8, Vlan 3398
IA 61.79.0.0/16 [110/31] via 61.168.4.254, Vlan 1600
Testing Network Connectivity
Use the ping command to test routing network connectivity by sending IP ping requests to a
specific destination. The ping command is available in both switch and routing command modes.
Procedure 20-3 Configuring Static Routes
Step Task Command(s)
1. In global configuration mode, configure an IPv4
static route.
ip route dest-prefix dest-prefix-
mask forwarding-rtr-addr [distance]
2. Optionally, remove a static route. no ip route dest-prefix dest-prefix-
mask forwarding-rtr-addr
3. Display the routing table, including static routes show ip route