cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
482
Views
0
Helpful
2
Replies

static ip route

josephschung
Level 1
Level 1

Dear Sir,

I have the following commands in my 3560 switch:

ip classless

ip route 0.0.0.0 0.0.0.0 10.106.242.57

ip route 10.106.13.0 255.255.255.240 10.106.13.249

ip route 10.106.13.16 255.255.255.248 10.106.13.17

#sh ip route

Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP

D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

E1 - OSPF external type 1, E2 - OSPF external type 2

i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2

ia - IS-IS inter area, * - candidate default, U - per-user static route

o - ODR, P - periodic downloaded static route

Gateway of last resort is 10.106.242.57 to network 0.0.0.0

10.0.0.0/8 is variably subnetted, 3 subnets, 3 masks

S 10.106.13.0/28 [1/0] via 10.106.13.249

C 10.106.242.56/29 is directly connected, FastEthernet0/24

C 10.106.13.192/26 is directly connected, Vlan1

S* 0.0.0.0/0 [1/0] via 10.106.242.57

I need to access 10.106.13.20/29 and 10.106.13.21/29, but I cannot.

Please help. Thanks.

1 Accepted Solution

Accepted Solutions

Richard Burts
Hall of Fame
Hall of Fame

Joseph

The explanation of your situation is fairly simple. You have configured 3 static routes and 1 of them specifies a next hop addresses that the router does not know how to reach. Your route:

ip route 10.106.13.16 255.255.255.248 10.106.13.17

which would include the .20 and .21 specifies a next hop address of 10.106.13.17 and the router does not know how to reach that next hop address and so does not insert the static route into the routing table. If you specify a reachable next hop address then the .20 and .21 would be reachable.

HTH

Rick

HTH

Rick

View solution in original post

2 Replies 2

Jerry Ye
Cisco Employee
Cisco Employee

It is because IP 10.106.13.17 is not in the routing table.

Can you provide a network topology?

HTH,

jerry

Richard Burts
Hall of Fame
Hall of Fame

Joseph

The explanation of your situation is fairly simple. You have configured 3 static routes and 1 of them specifies a next hop addresses that the router does not know how to reach. Your route:

ip route 10.106.13.16 255.255.255.248 10.106.13.17

which would include the .20 and .21 specifies a next hop address of 10.106.13.17 and the router does not know how to reach that next hop address and so does not insert the static route into the routing table. If you specify a reachable next hop address then the .20 and .21 would be reachable.

HTH

Rick

HTH

Rick
Review Cisco Networking for a $25 gift card