### # # BGP Two channel with one provider (Private AS) # ### # ISP router1 ! interface FastEthernet1 description - isp1 - ip address x.x.x.1 255.255.255.252 ! router bgp 00001 neighbor ISP1 peer-group neighbor ISP1 remote-as 65100 neighbor ISP1 version 4 neighbor ISP1 activate neighbor ISP1 default-originate neighbor ISP1 remove-private-as neighbor ISP1 maximum-prefix 10 neighbor x.x.x.2 peer-group ISP1 # ISP router1 ! interface FastEthernet1 description - isp2 - ip address y.y.y.1 255.255.255.252 ! router bgp 00002 neighbor ISP2 peer-group neighbor ISP2 remote-as 65100 neighbor ISP2 version 4 neighbor ISP2 activate neighbor ISP2 default-originate neighbor ISP2 remove-private-as neighbor ISP2 maximum-prefix 10 neighbor y.y.y.2 peer-group ISP2 # Customer router ! router bgp 65100 aggregate-address z.z.z.0/24 summary-only redistribute connected neighbor x.x.x.2 remote-as 00001 neighbor x.x.x.2 prefix-list PREFIX-IN in neighbor x.x.x.2 prefix-list PREFIX-OUT out neighbor x.x.x.2 route-map isp1 in neighbor x.x.x.2 route-map isp1 out neighbor y.y.y.2 remote-as 00002 neighbor y.y.y.2 prefix-list PREFIX-IN in neighbor y.y.y.2 prefix-list PREFIX-OUT out neighbor y.y.y.2 route-map isp2 in neighbor y.y.y.2 route-map isp2 out ! ip prefix-list PREFIX-IN seq 5 permit 0.0.0.0/0 ip prefix-list PREFIX-OUT seq 5 permit z.z.z.0/24 ! route-map isp1 permit 10 set local-preference 110 ! route-map isp2 permit 10 set local-preference 90 ! line vty !