Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hostname ASXXXXX
- password 123
- enable password 123
- log file /var/log/quagga/bgpd.log
- !
- router bgp XXXXX
- bgp router-id xx.xxx.xxx.1
- bgp log-neighbor-changes
- network xxx.xxx.xxx.0/23
- network xxx.xxx.0.0/22
- neighbor xxx.xxx.20.189 remote-as YYYYY
- neighbor xxx.xxx.20.189 description PEER
- neighbor xxx.xxx.20.189 next-hop-self
- neighbor xxx.xxx.20.189 default-originate
- neighbor xxx.xxx.20.189 soft-reconfiguration inbound
- neighbor xxx.xxx.20.189 route-map PEER-in in
- neighbor xxx.xxx.20.189 route-map PEER-out out
- neighbor xxx.xxx.20.189 weight 1000
- neighbor xxx.xxx.108.73 remote-as ZZZZZ
- neighbor xxx.xxx.108.73 description UAIX
- neighbor xxx.xxx.108.73 next-hop-self
- neighbor xxx.xxx.108.73 soft-reconfiguration inbound
- neighbor xxx.xxx.108.73 route-map UAIX-in in
- neighbor xxx.xxx.108.73 route-map UAIX-out out
- neighbor xxx.xxx.108.73 weight 6000
- neighbor xxx.xxx.109.73 remote-as ZZZZZ
- neighbor xxx.xxx.109.73 description WORLD
- neighbor xxx.xxx.109.73 next-hop-self
- neighbor xxx.xxx.109.73 soft-reconfiguration inbound
- neighbor xxx.xxx.109.73 prefix-list default in
- neighbor xxx.xxx.109.73 route-map WORLD-in in
- neighbor xxx.xxx.109.73 route-map WORLD-out out
- neighbor xxx.xxx.109.73 weight 5000
- !
- ip prefix-list bogons description bogus nets
- ip prefix-list bogons seq 20 permit 127.0.0.0/8 le 32
- ip prefix-list bogons seq 30 permit 10.0.0.0/8 le 32
- ip prefix-list bogons seq 35 permit 172.16.0.0/12 le 32
- ip prefix-list bogons seq 40 permit 192.168.0.0/16 le 32
- ip prefix-list bogons seq 45 permit 169.254.0.0/16 le 32
- ip prefix-list bogons seq 50 permit 224.0.0.0/4 le 32
- ip prefix-list bogons seq 55 permit 240.0.0.0/4 le 32
- ip prefix-list default description default route
- ip prefix-list default seq 10 permit 0.0.0.0/0
- ip prefix-list our-nets seq 5 permit xxx.xxx.0.0/22
- ip prefix-list our-nets seq 10 permit xxx.xxx.xxx.0/23
- ip prefix-list us-nets seq 5 permit xxx.xxx.20.0/24
- !
- ip as-path access-list 1 permit _6451[2-9]_
- ip as-path access-list 1 permit _645[2-9][0-9]_
- ip as-path access-list 1 permit _64[6-9][0-9][0-9]_
- ip as-path access-list 1 permit _65[0-9][0-9][0-9]_
- !
- route-map WORLD-in permit 5
- match ip address prefix-list default
- set local-preference 100
- !
- route-map WORLD-in deny 100
- match as-path 1
- !
- route-map WORLD-in deny 115
- !
- route-map WORLD-out permit 100
- match ip address prefix-list our-nets
- !
- route-map WORLD-out permit 115
- match ip address prefix-list us-nets
- !
- route-map WORLD-out deny 200
- !
- route-map UAIX-in deny 100
- match as-path 1
- !
- route-map UAIX-in deny 110
- match ip address prefix-list bogons
- !
- route-map UAIX-in deny 115
- match ip address prefix-list default
- !
- route-map UAIX-in deny 120
- match ip address prefix-list our-nets
- !
- route-map UAIX-in permit 200
- set local-preference 500
- !
- route-map UAIX-out permit 100
- match ip address prefix-list our-nets
- !
- route-map UAIX-out permit 115
- match ip address prefix-list us-nets
- !
- route-map UAIX-out deny 200
- !
- route-map PEER-in permit 5
- match ip address prefix-list default
- set local-preference 50
- set as-path prepend XXXXX XXXXX XXXXX
- !
- route-map PEER-in permit 100
- match ip address prefix-list us-nets
- set local-preference 600
- !
- route-map PEER-in deny 115
- !
- route-map PEER-out permit 100
- match ip address prefix-list our-nets
- !
- route-map PEER-out permit 110
- match ip address prefix-list default
- !
- route-map PEER-out deny 200
- !
- line vty
- !
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement