Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- !
- log file /var/log/quagga/zebra.log
- log file /var/log/quagga/bgpd.log
- !
- service password-encryption
- !
- debug bgp
- debug bgp events
- debug bgp updates
- debug bgp filters
- debug bgp zebra
- !
- interface eth0
- description to ROUTER2
- ip address 192.168.200.1/28
- link-detect
- no multicast
- !
- interface eth1
- no link-detect
- !
- interface eth2
- description to SERVERS
- ip address 192.168.255.251/24
- link-detect
- no multicast
- !
- interface eth3
- no link-detect
- !
- interface eth4
- description to ISP_R1
- ip address 172.16.1.1/24
- link-detect
- no multicast
- !
- interface eth5
- no link-detect
- !
- interface eth6
- no link-detect
- !
- interface eth7
- no link-detect
- !
- interface lo
- ip address 192.168.56.2/32
- no link-detect
- !
- router bgp 64512
- bgp router-id 192.168.56.2
- redistribute connected
- redistribute static
- timers bgp 10 30
- neighbor 172.16.1.254 remote-as 65534
- neighbor 172.16.1.254 description ISP_R1
- neighbor 172.16.1.254 update-source 172.16.1.1
- neighbor 172.16.1.254 soft-reconfiguration inbound
- neighbor 172.16.1.254 route-map v4-default-only in
- neighbor 172.16.1.254 route-map v4-as65534-out out
- neighbor 192.168.56.3 remote-as 64512
- neighbor 192.168.56.3 description IBGP - ROUTER2
- neighbor 192.168.56.3 update-source 192.168.56.2
- neighbor 192.168.56.3 next-hop-self
- neighbor 192.168.56.3 soft-reconfiguration inbound
- neighbor 192.168.56.3 route-map v4-ibgp-in in
- neighbor 192.168.56.3 route-map v4-ibgp-out out
- !
- address-family ipv6
- exit-address-family
- exit
- !
- ip route 0.0.0.0/0 172.16.1.254 254
- ip route 192.168.56.3/32 192.168.200.2 254
- ip route 192.168.255.0/24 Null0
- !
- ip prefix-list v4-blackhole seq 500 deny any
- ip prefix-list v4-default-only seq 5 permit 0.0.0.0/0
- ip prefix-list v4-default-only seq 500 deny any
- ip prefix-list v4-loopback seq 5 permit 192.168.56.2/32
- ip prefix-list v4-loopback seq 10 permit 192.168.56.3/32
- ip prefix-list v4-loopback seq 500 deny any
- ip prefix-list v4-mycompany-nets seq 5 permit 192.168.255.0/24 le 32
- ip prefix-list v4-mycompany-nets seq 500 deny any
- !
- route-map DENY deny 1
- !
- route-map v4-default-only permit 100
- match ip address prefix-list v4-default-only
- set local-preference 200
- !
- route-map v4-default-only deny 500
- !
- route-map v4-as65534-out permit 200
- match ip address prefix-list v4-mycompany-nets
- set metric 100
- set origin igp
- !
- route-map v4-as65534-out deny 500
- !
- route-map v4-ibgp-in permit 500
- !
- route-map v4-ibgp-out permit 400
- match ip address prefix-list v4-default-only
- set local-preference 200
- set origin igp
- !
- route-map v4-ibgp-out permit 500
- match ip address prefix-list v4-loopback
- set origin igp
- !
- ip forwarding
- !
- line vty
- no login
- !
- end
Add Comment
Please, Sign In to add comment