cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1078
Views
3
Helpful
14
Replies

problem with double static route

assistenzaelia
Level 1
Level 1

hi I have an ASR1001 pppoe server. If one customer have two connection and only one public ip, i must add static routers for give to customers router public ip for go to internet.

ex

ip route 31.188.188.188 255.255.255.255 10.10.10.12 10
ip route 31.188.188.188 255.255.255.255 10.10.10.13 11

if one main connection fault, customer use backup line.

in this case, doesnt happen. If main go down second static route is not used.

 

in show ip cef i see that private ip 10.10.10.12 is searching via a bgp connection that have the asr but in the network there is no this ip.

someone had this trouble?

asr1001 v 17.06.03a

 

thank you

14 Replies 14

if the interface for both static router is same then both static route will failed and remove from RIB.

hi no the pppoe client 10.10.10.12 and 10.10.10.13 go to pppoe server in two different vlan. phisical interface 10G port  is the same but i have one vlan for each pop

here the screen

C 10.10.10.12/32 is directly connected, Virtual-Access2.797
C 10.10.10.13/32 is directly connected, Virtual-Access2.482

S 31.188.188.188/32 [10/0] via 10.10.10.12

ip route 31.188.188.188 255.255.255.255 10.10.10.12 10
ip route 31.188.188.188 255.255.255.255 10.10.10.13 11

S 31.188.188.188/32 [10/0] via 10.10.10.12 

here I think the static route is push from your SP and it override both your static route. 
ppp ipcp route default <<- remove this and your config static route will take effect. 
by the way I prefer the ppp ipcp route default.

thanks for reply I will do a test in few days.

There is other way for push same loopback ip in two diffent gateway?

have a nice day

There is other way for push same loopback ip in two diffent gateway? As I know no, the PPP IPCP push only default route toward client with GW IP of Server.

I need that my router push default route to clients. If I remove this command I can do it?

I dont see this command in my show config is correct?

sorry can more elaborate I dont get your Q?

sorry

I dont have in my show config the command "ppp ipcp route default"

So I use it? If Yes, if I remove, my customers will have dynamic default route?

thankyou

please check below my comment 

Hello
you can make those static routes conditional

track 1 interface <main interface> ip routing
ip route 31.188.188.188 255.255.255.255 10.10.10.12 10 name Main_ISP track 1
ip route 31.188.188.188 255.255.255.255 10.10.10.13 11 2 name Backup_ISP


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

hi I try with this too but doesnt work. Only main route is working and second one doesnt go up if the main fails.

thank you

Hello


@assistenzaelia wrote:

hi I try with this too but doesnt work. Only main route is working and second one doesnt go up if the main fails.



try 
track 1 interface <main interface> line-protocol



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

why the second one not down ??
let discuss case 
the static route have down if 
1- the egress interface is down, this immediate will withdraw the static route 
2- next-hop is unreachable, this need IP SLA to detect that the next-hop or IP reach via next-hop is reachable or not 

NOW here we are in loop !! Yes Loop 
the next-hop is always reachable, but how?
there is default route, this make next-hop always reachable (not totally reachable but the router assume it reachable since there is static or dynamic route that router will use it to reach the next-hop).

how we can solve this case??
first the next-hop is LO or IP address of virtual-template you config in ASR (PPPoE Server)
this next-hop is only appear when the PPPoE is UP 
when it down this IP will remove and hence static route will withdraw 

we must sure that the PPPoE server not inject default route via second PPPoE, this make router assume that the next-hop is reachable and hence never remove the static route via first PPPoE (first one).

but I need default route n client site ! here we can add the dailer interface of first PPPoE in static route 

this also can not help me 
you can use IP sla track to detect the next-hop of first PPPoE (please check this solution I am not 100% sure you can use dialer as source-interface in IP SLA command)

Review Cisco Networking for a $25 gift card