Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ========================================
- RTR1 - ROUTER 1 - BGPD.CONF - SANITIZED
- ========================================
- ! Zebra configuration saved from vty
- !
- router bgp XYZ
- bgp router-id 10.124.1.106
- bgp log-neighbor-changes
- redistribute static route-map STATIC-CONNECTED-BGP
- neighbor COMCAST peer-group
- neighbor COMCAST remote-as 7922
- neighbor COMCAST description ISP-Comcastic
- neighbor COMCAST route-map NO-DEFAULT-IN in
- neighbor COMCAST route-map COMCAST-OUT out
- neighbor COMCAST2 peer-group
- neighbor COMCAST2 remote-as 7922
- neighbor COMCAST2 description Comcast Secondary
- neighbor COMCAST2 ebgp-multihop 255
- neighbor COMCAST2 route-map PROVIDERS-IN in
- neighbor COMCAST2 route-map NO-ROUTES-OUT out
- neighbor DE-PREF-PROVIDERS peer-group
- neighbor DE-PREF-PROVIDERS description Providers that we want to de-pref
- no neighbor DE-PREF-PROVIDERS send-community
- neighbor DE-PREF-PROVIDERS route-map DE-PREF-IN in
- neighbor DE-PREF-PROVIDERS route-map PREPEND-OUT out
- neighbor PROVIDERS peer-group
- neighbor PROVIDERS description Internet Service Providers
- no neighbor PROVIDERS send-community
- neighbor PROVIDERS route-map PROVIDERS-IN in
- neighbor PROVIDERS route-map EBGP-OUT out
- neighbor iBGP peer-group
- neighbor iBGP remote-as XYZ
- neighbor iBGP description "iBGP Sessions"
- neighbor iBGP update-source p1p1
- neighbor iBGP next-hop-self
- neighbor iBGP soft-reconfiguration inbound
- neighbor 111.111.111.146 peer-group iBGP
- neighbor 111.111.193 remote-as YYY
- neighbor 111.111.193 peer-group PROVIDERS
- !
- ip prefix-list ALL-ROUTES description Match All Routes
- ip prefix-list ALL-ROUTES seq 10 permit 0.0.0.0/0 le 32
- ip prefix-list DEFAULT-ROUTE description Match Default Route
- ip prefix-list DEFAULT-ROUTE seq 10 permit 0.0.0.0/0
- ip prefix-list MY-ROUTES description Our BGP routes
- ip prefix-list MY-ROUTES seq 10 permit 111.111.111.0/24
- ip prefix-list MY-ROUTES seq 20 permit 33.33.0.0/24
- ip prefix-list RFC1918 seq 10 permit 10.0.0.0/8 le 32
- ip prefix-list RFC1918 seq 20 permit 172.16.0.0/12 le 32
- ip prefix-list RFC1918 seq 30 permit 192.168.0.0/16 le 32
- ip prefix-list STATIC-CONNECTED-BGP description BGP Redistribution List
- ip prefix-list STATIC-CONNECTED-BGP seq 10 permit 111.111.111.0/24 le 32
- ip prefix-list STATIC-CONNECTED-BGP seq 20 permit 33.33.0.0/24 le 32
- !
- ip community-list standard POISON-ROUTES permit no-export
- !
- route-map EBGP-OUT deny 10
- match ip address prefix-list RFC1918
- !
- route-map EBGP-OUT deny 20
- match community POISON-ROUTES
- !
- route-map EBGP-OUT permit 30
- match ip address prefix-list MY-ROUTES
- !
- route-map PROVIDERS-IN deny 10
- match ip address prefix-list RFC1918
- !
- route-map PROVIDERS-IN permit 20
- set community no-export
- set local-preference 100
- set metric 5000
- !
- route-map PREPEND-OUT deny 10
- match ip address prefix-list RFC1918
- !
- route-map PREPEND-OUT deny 20
- match community POISON-ROUTES
- !
- route-map PREPEND-OUT permit 30
- match ip address prefix-list MY-ROUTES
- set as-path prepend XYZ XYZ XYZ
- !
- route-map STATIC-CONNECTED-BGP permit 10
- match ip address prefix-list STATIC-CONNECTED-BGP
- set origin igp
- !
- route-map DE-PREF-IN deny 10
- match ip address prefix-list RFC1918
- !
- route-map DE-PREF-IN permit 20
- set community no-export
- set local-preference 90
- set metric 5000
- !
- route-map COMCAST-OUT deny 10
- match ip address prefix-list RFC1918
- !
- route-map COMCAST-OUT deny 20
- match community POISON-ROUTES
- !
- route-map COMCAST-OUT permit 30
- match ip address prefix-list MY-ROUTES
- set community 7922:999
- !
- route-map NO-ROUTES-OUT deny 10
- match ip address prefix-list ALL-ROUTES
- !
- route-map NO-DEFAULT-IN deny 10
- match ip address prefix-list RFC1918
- !
- route-map NO-DEFAULT-IN deny 20
- match ip address prefix-list DEFAULT-ROUTE
- !
- route-map NO-DEFAULT-IN permit 30
- set community no-export
- set local-preference 100
- set metric 5000
- !
- line vty
- !
- ========================================
- RTR1 - ROUTER 1 - ZEBRA.CONF - SANITIZED
- ========================================
- ! Zebra configuration saved from vty
- !
- hostname rtr1.domain.com
- !
- interface em1
- description Management
- ip address 10.124.1.106/19
- ipv6 nd suppress-ra
- !
- interface em2
- ipv6 nd suppress-ra
- !
- interface em3
- ipv6 nd suppress-ra
- !
- interface em4
- ipv6 nd suppress-ra
- !
- interface lo
- !
- interface p1p1
- description To rtr2
- ip address 111.111.111.145/30
- ipv6 nd suppress-ra
- !
- interface p1p2
- ipv6 nd suppress-ra
- !
- interface p2p1
- description To Firewalls
- ip address 111.111.111.140/28
- ipv6 nd suppress-ra
- !
- interface p2p2
- description To ISP-ALPHA
- ip address 111.222.222.194/30
- ipv6 nd suppress-ra
- !
- ip route 33.33.0.0/24 111.111.111.129
- ip route 111.111.111.0/24 Null0
- ip route 111.111.111.0/25 111.111.111.129
- !
- ip prefix-list ALL-ROUTES description Match All Routes
- ip prefix-list ALL-ROUTES seq 10 permit 0.0.0.0/0 le 32
- ip prefix-list DEFAULT-ROUTE description Match Default Route
- ip prefix-list DEFAULT-ROUTE seq 10 permit 0.0.0.0/0
- ip prefix-list MY-ROUTES description Our BGP routes
- ip prefix-list MY-ROUTES seq 10 permit 111.111.111.0/24
- ip prefix-list MY-ROUTES seq 20 permit 33.33.0.0/24
- ip prefix-list RFC1918 seq 10 permit 10.0.0.0/8 le 32
- ip prefix-list RFC1918 seq 20 permit 172.16.0.0/12 le 32
- ip prefix-list RFC1918 seq 30 permit 192.168.0.0/16 le 32
- ip prefix-list STATIC-CONNECTED-BGP description BGP Redistribution List
- ip prefix-list STATIC-CONNECTED-BGP seq 10 permit 111.111.111.0/24 le 32
- ip prefix-list STATIC-CONNECTED-BGP seq 20 permit 33.33.0.0/24 le 32
- !
- route-map EBGP-OUT deny 10
- match ip address prefix-list RFC1918
- !
- route-map EBGP-OUT deny 20
- !
- route-map EBGP-OUT permit 30
- match ip address prefix-list MY-ROUTES
- !
- route-map PROVIDERS-IN deny 10
- match ip address prefix-list RFC1918
- !
- route-map PROVIDERS-IN permit 20
- !
- route-map PREPEND-OUT deny 10
- match ip address prefix-list RFC1918
- !
- route-map PREPEND-OUT deny 20
- !
- route-map PREPEND-OUT permit 30
- match ip address prefix-list MY-ROUTES
- !
- route-map STATIC-CONNECTED-BGP permit 10
- match ip address prefix-list STATIC-CONNECTED-BGP
- !
- route-map DE-PREF-IN deny 10
- match ip address prefix-list RFC1918
- !
- route-map DE-PREF-IN permit 20
- !
- route-map COMCAST-OUT deny 10
- match ip address prefix-list RFC1918
- !
- route-map COMCAST-OUT deny 20
- !
- route-map COMCAST-OUT permit 30
- match ip address prefix-list MY-ROUTES
- !
- route-map NO-ROUTES-OUT deny 10
- match ip address prefix-list ALL-ROUTES
- !
- route-map NO-DEFAULT-IN deny 10
- match ip address prefix-list RFC1918
- !
- route-map NO-DEFAULT-IN deny 20
- match ip address prefix-list DEFAULT-ROUTE
- !
- route-map NO-DEFAULT-IN permit 30
- !
- ip forwarding
- !
- !
- line vty
- !
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement