0% found this document useful (0 votes)
14 views

BGP Lab 1.2 A

Uploaded by

leonardo333555
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views

BGP Lab 1.2 A

Uploaded by

leonardo333555
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Ali Aydemir CCNP RS v2.0 ROUTE BGP LAB-1.

2 Configs IPv4

##R01## ##R02##

conf t conf t
! !
ip bgp-community new-format access-list 10 permit 5.5.5.5
! !
route-map SET-COMMUNITY permit 10 route-map MED permit 10
set community 100:1 match ip address 10
! set metric 5
router bgp 100 !
address-family ipv4 route-map MED permit 20
neighbor 192.168.17.7 weight 10 set metric 100
neighbor 192.168.16.6 send-community both !
neighbor 192.168.16.6 route-map SET-COMMUNITY out router bgp 100
neighbor 192.168.17.7 send-community both address-family ipv4
neighbor 192.168.17.7 route-map SET-COMMUNITY out neighbor 192.168.26.6 weight 10
! neighbor 192.168.26.6 route-map MED out
end !
end
##R06##
##R08##
conf t
! conf t
ip bgp-community new-format !
! router bgp 103
access-list 10 permit 172.16.14.14 bgp default local-preference 130
! !
route-map SET-ORIGIN-CODE permit 10 end
match ip address 10
set origin igp ##R09##
!
route-map SET-ORIGIN-CODE permit 20 conf t
! !
router bgp 101 router bgp 103
address-family ipv4 bgp default local-preference 130
neighbor 192.168.126.12 route-map SET-ORIGIN-CODE out !
! end
end

##R07##

conf t
!
ip bgp-community new-format
!
ip as-path access-list 10 permit _100$
!
ip prefix-list ONLY_32 seq 5 permit 0.0.0.0/0 ge 32
!
route-map DENY-32-FROM-AS100 deny 10
match ip address prefix-list ONLY_32
match as-path 10
!
route-map DENY-32-FROM-AS100 permit 20
set metric 17
!
router bgp 102
address-family ipv4
neighbor 192.168.78.8 route-map DENY-32-FROM-AS100 out
!
end

1
Ali Aydemir CCNP RS v2.0 ROUTE BGP LAB-1.2 Configs IPv4

##R10## ##R11##

conf t conf t
! !
router bgp 103 route-map LPR permit 10
address-family ipv4 set local-preference 150
neighbor 8.8.8.8 soft-reconfiguration inbound !
neighbor 9.9.9.9 soft-reconfiguration inbound router bgp 103
neighbor 11.11.11.11 soft-reconfiguration inbound bgp default local-preference 150
! !
end address-family ipv4
neighbor 192.168.113.13 route-map LPR in
##R12## !
end
conf t
! ##R13##
ip as-path access-list 12 permit _103$
! conf t
route-map PREPEND permit 10 !
match as-path 12 ip as-path access-list 13 permit _102$
set as-path prepend 104 104 104 !
! route-map SET-WEIGHT permit 10
route-map PREPEND permit 20 match as-path 13
! set weight 150
router bgp 104 !
address-family ipv4 route-map SET-WEIGHT permit 20
neighbor 192.168.123.13 route-map PREPEND in !
! router bgp 105
end address-family ipv4
neighbor 192.168.93.9 default-originate
neighbor 192.168.113.11 default-originate
neighbor 192.168.113.11 route-map SET-WEIGHT in
neighbor 192.168.123.12 default-originate
!
end

You might also like