On 9 December 2010 16:14, Thuo Wilson <lixton@gmail.com> wrote:


On 9 December 2010 16:12, Thuo Wilson <lixton@gmail.com> wrote:


On 8 December 2010 18:24, <tonnie@swiftkenya.com> wrote:
Hi Skunks

I?m trying to configure auto-failover between KDN and Safcom links, with KDN being the primary. My router config is as below

Interfaces

interface GigabitEthernet0/0
description LAN
ip address 192.168.7.1 255.255.255.0
duplex auto
speed auto
!
interface GigabitEthernet0/1
Description KDN Link
 ip address 172.220.70.34 255.255.255.252
duplex auto
speed auto
!
interface FastEthernet0/0/0
description Link to Safaricom
ip address 172.30.6.182 255.255.255.252
duplex auto
speed auto
!



BGP Config

router bgp 65200
 no synchronization
 bgp log-neighbor-changes
 network 132.147.160.0 mask 255.255.255.0
 network 172.16.0.0 mask 255.255.255.0
 network 192.168.7.0
 timers bgp 30 45
 neighbor 172.30.6.181 remote-as 37061
 neighbor 172.30.6.181 ebgp-multihop 3
 neighbor 172.30.6.181 update-source FastEthernet0/0/0
 neighbor 172.30.6.181 weight 100
 neighbor 172.30.6.181 prefix-list INSECTA-ROUTE out
 neighbor 172.220.70.33 remote-as 65160
 neighbor 172.220.70.33 ebgp-multihop 3
 neighbor 172.220.70.33 update-source GigabitEthernet0/1
 neighbor 172.220.70.33 weight 1000
 neighbor 172.220.70.33 prefix-list INSECTA-ROUTE out
 no auto-summary
!

mix, route-maps, AS-PATH and IP SLA ().


OOPPS - PREPEND AS not AS-PATH !


Further, see a sample to suit your need.

If you want to monitor P2P links only using SLA try monitor a providers DNS/KNOWN IP on their network eg, since KDN is primary. Do as follows;

(btw depending on IOS the command interpretation varies)

ip sla monitor 10
 type echo protocol ipIcmpEcho 172.220.70.34 source-ipaddr 172.220.70.34            === icmp echo with src address
 timeout 500                                                                                                               ====== delay b4 timeout
 frequency 3                                                                                                                =====    (if host doesnt respond in 1.5 seconds, jipange na backup)
ip sla monitor schedule 10 start-time now                                                                      === self explanatory

Then: TELL the router to check this

route 0.0.0.0 0.0.0.0 172.220.70.33
route 0.0.0.0 0.0.0.0 172.30.6.181   100
==== Note the distance, means if primary has been detected to go down, insert this as primary on routing table.


router bgp XXXX

neighbor 172.30.6.181 weight 1000 <PREFERED>

neighbor 172.30.6.181 route-map KDN-PRIMARY out


neighbor 172.220.70.33 weight 100 <BACKUP>

neighbor 172.220.70.33 route-map SAFCOM-BACKUP out


ip prefix-list KDN seq 5 permit 132.147.160.0/24

ip prefix-list KDN seq 500 deny 0.0.0.0/0


ip prefix-list SAFCOM seq 5 permit 132.147.160.0/24

ip prefix-list SAFCOM seq 500 deny 0.0.0.0/0


route-map KDN-PRIMARY permit 20

match ip address prefix-list SAFCOM

set as-path prepend xxxx xxxx xxxx (3 or more times)


route-map SAFCOM-BACKUP permit 10

match ip address prefix-list KDN

set as-path prepend xxx (or more but not exceeding the above)


(The above takes care of BGP route only if uplink is responding)


E&OE.



Wilson.



 
Wilson.
 

When I shut down KDN interface, Safcom link picks up traffic, but when I bring up the KDN interface, it doesn?t come as primary until I shut down Safaricom. I have given KDN link the required weight.

Could there be a syntax I have missed out?

Regards
Anthony

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

_______________________________________________
Skunkworks mailing list
Skunkworks@lists.my.co.ke
http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
------------
Skunkworks Rules
http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
------------
Other services @ http://my.co.ke