cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
499
Views
10
Helpful
3
Replies

Permenant Static Route and Static Route

satvik.raval
Level 1
Level 1

Diagram.png

Lets assume we have a network 192.168.1.0/24 connected to R2. On R1 2 static routes are created as below. Also, link between R1 and R2 has failed.

 

ip route 192.168.1.2 255.255.255.255 f0/0 permanent

ip route 192.168.1.0 255.255.255.0 f0/1

 

If packets are destined to Server 1(S1) then, will the packets be discarded at R1 or will it be forwarded through R3?

1 Accepted Solution

Accepted Solutions

Harold Ritter
Cisco Employee
Cisco Employee

Hi @satvik.raval ,

 

The packets would be discarded at R1, as the static route will never get removed from the routing table, regardless if the interface is up or down. 

 

Regards,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

View solution in original post

3 Replies 3

Harold Ritter
Cisco Employee
Cisco Employee

Hi @satvik.raval ,

 

The packets would be discarded at R1, as the static route will never get removed from the routing table, regardless if the interface is up or down. 

 

Regards,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello @satvik.raval ,

you are relying on Proxy ARP to be enabled on R2 and R3 interfaces .

It would be better to specify IP next-hops the permanent keyword is an option that should not be used for reasons explained by Harold

 

Hope to help

Giuseppe

 

Hello


ip route 192.168.1.2 255.255.255.255 f0/0 permanent

ip route 192.168.1.0 255.255.255.0 f0/1

 

If packets are destined to Server 1(S1) then, will the packets be discarded at R1 or will it be forwarded through R3?


As stated packets will be discarded due to the permanent statement applied to the r1-r2  longer host static route, Otherwise traffic would fail over via R3 if that wasnt applied as then that longer static host route would then be removed as/when its physcal interface goes down




Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul
Review Cisco Networking products for a $25 gift card