!
! Zebra configuration saved from vty
!   2010/05/15 14:14:45
!
hostname R2-BGPd
password zebra
enable password zebra
log file /var/log/quagga/bgpd.log
!
router bgp 11752
 bgp router-id 189.76.127.254
 no bgp default ipv4-unicast
 network 189.76.96.0/19
 network 189.76.96.0/21
 network 189.76.96.0/22
 network 189.76.100.0/22
 network 189.76.104.0/21
 network 189.76.104.0/22
 network 189.76.108.0/22
 network 189.76.112.0/20
 network 189.76.112.0/21
 network 189.76.112.0/22
 network 189.76.116.0/22
 network 189.76.120.0/21
 network 189.76.120.0/22
 network 189.76.124.0/22
 neighbor 189.76.127.6 remote-as 11752
 neighbor 189.76.127.6 description iBGP-Juniper-PTTMetro
 neighbor 189.76.127.6 activate
 neighbor 189.76.127.6 filter-list 20 out
 neighbor 189.76.127.249 remote-as 11752
 neighbor 189.76.127.249 description iBGP-R1
 neighbor 189.76.127.249 update-source 189.76.127.248
 neighbor 189.76.127.249 activate
 neighbor 189.76.127.249 next-hop-self
 neighbor 200.225.196.250 remote-as 16735
 neighbor 200.225.196.250 description eBGP-Transito-Algar-Telecom (CTBC-AS16735)
 neighbor 200.225.196.250 activate
 neighbor 200.225.196.250 prefix-list BGPout-IPv4-AS16735 out
 neighbor 200.225.196.250 route-map BGPin-IPv4-AS16735 in
 neighbor 2001:1291:1301:4::a remote-as 16735
 neighbor 2001:1291:1301:4::a description eBGP-Transito-Algar-Telecom (CTBC-AS16735)
 neighbor 2001:12fe:a:202:4::6 remote-as 11752
 neighbor 2001:12fe:a:202:4::6 description iBGP-Juniper-PTTMetro
!
 address-family ipv6
 network 2001:12fe::/32
 network 2001:12fe::/33
 network 2001:12fe:8000::/33
 neighbor 2001:1291:1301:4::a activate
 neighbor 2001:1291:1301:4::a prefix-list BGPout-IPv6-AS16735 out
 neighbor 2001:1291:1301:4::a route-map BGPin-IPv6-AS16735 in
 neighbor 2001:12fe:a:202:4::6 activate
 neighbor 2001:12fe:a:202:4::6 filter-list 20 out
 exit-address-family
!
ip prefix-list BGPout-IPv4-AS16735 description Prefixos para AS16735 (CTBC/Algar)
ip prefix-list BGPout-IPv4-AS16735 seq 10 permit 189.76.96.0/19
ip prefix-list BGPout-IPv4-AS16735 seq 20 permit 189.76.112.0/20
ip prefix-list IPv4-AS11752-all description Todos Blocos IPv4
ip prefix-list IPv4-AS11752-all seq 10 permit 189.76.96.0/19 le 32
ip prefix-list IPv4-block-deny description Prefixos Gerais Bloquados
ip prefix-list IPv4-block-deny seq 10 permit 0.0.0.0/0
ip prefix-list IPv4-block-deny seq 20 permit 0.0.0.0/8 le 32
ip prefix-list IPv4-block-deny seq 30 permit 127.0.0.0/8 le 32
ip prefix-list IPv4-block-deny seq 40 permit 169.254.0.0/16 le 32
ip prefix-list IPv4-block-deny seq 50 permit 192.0.2.0/24 le 32
ip prefix-list IPv4-block-deny seq 60 permit 192.168.0.0/16 le 32
ip prefix-list IPv4-block-deny seq 70 permit 10.0.0.0/8 le 32
ip prefix-list IPv4-block-deny seq 80 permit 172.16.0.0/12 le 32
!
ipv6 prefix-list BGPout-IPv6-AS16735 description Prefixos para AS16735 (CTBC/Algar)
ipv6 prefix-list BGPout-IPv6-AS16735 seq 10 permit 2001:12fe::/32
ipv6 prefix-list IPv6-IPv6-AS11752-all description Todos Blocos IPv6
ipv6 prefix-list IPv6-IPv6-AS11752-all seq 10 permit 2001:12fe::/32 le 128
ipv6 prefix-list IPv6-block-deny description Prefixos Gerais Bloquados
ipv6 prefix-list IPv6-block-deny seq 10 permit ::/0
ipv6 prefix-list IPv6-block-deny seq 20 permit 2001:db8::/32 le 128
!
ip as-path access-list 20 permit ^$
ip as-path access-list 30 permit ^(16735_)+$
ip as-path access-list 32 permit .*
ip as-path access-list 40 permit _27699$
ip as-path access-list 69 deny .*
!
route-map BGPin-IPv4-AS16735 deny 10
 match ip address prefix-list IPv4-AS11752-all
!
route-map BGPin-IPv4-AS16735 deny 20
 match ip address prefix-list IPv4-block-deny
!
route-map BGPin-IPv4-AS16735 permit 30
 match as-path 30
 set local-preference 500
!
route-map BGPin-IPv4-AS16735 permit 40
 match as-path 40
 set local-preference 200
!
route-map BGPin-IPv4-AS16735 permit 100
 match as-path 32
!
route-map BGPin-IPv6-AS16735 deny 10
 match ipv6 address prefix-list IPv6-IPv6-AS11752-all
!
route-map BGPin-IPv6-AS16735 deny 20
 match ipv6 address prefix-list IPv6-block-deny
!
route-map BGPin-IPv6-AS16735 permit 30
 match as-path 30
 set local-preference 500
!
route-map BGPin-IPv6-AS16735 permit 40
 match as-path 32
!
line vty
!
