N's Story

BGP LAB Attribute MED 본문

■ Communications /↘ Cisco GNS

BGP LAB Attribute MED

AndrewNa 2019. 4. 30. 19:34
728x90
반응형

Topology

 

 

Command(running) 기본 설정 제외

-R1-

router eigrp 200

network 1.1.1.0 0.0.0.255

network 192.168.12.0

network 192.168.13.0

no auto-summary

!

router bgp 1

no synchronization

bgp log-neighbor-changes

network 1.1.1.0 mask 255.255.255.0

neighbor 2.2.2.2 remote-as 1

neighbor 2.2.2.2 update-source Loopback0

neighbor 3.3.3.3 remote-as 1

neighbor 3.3.3.3 update-source Loopback0

no auto-summary

 

-R2-

router eigrp 200

network 2.2.2.0 0.0.0.255

network 192.168.12.0

network 192.168.23.0

no auto-summary

!

router bgp 1

no synchronization

bgp log-neighbor-changes

network 2.2.2.0 mask 255.255.255.0

neighbor 1.1.1.1 remote-as 1

neighbor 1.1.1.1 update-source Loopback0

neighbor 1.1.1.1 next-hop-self

neighbor 3.3.3.3 remote-as 1

neighbor 3.3.3.3 update-source Loopback0

neighbor 3.3.3.3 next-hop-self

neighbor 192.168.24.4 remote-as 2

no auto-summary

 

-R3-

router eigrp 200

network 3.3.3.0 0.0.0.255

network 192.168.13.0

network 192.168.23.0

no auto-summary

!

router bgp 1

no synchronization

bgp log-neighbor-changes

network 3.3.3.0 mask 255.255.255.0

neighbor 1.1.1.1 remote-as 1

neighbor 1.1.1.1 update-source Loopback0

neighbor 1.1.1.1 next-hop-self

neighbor 2.2.2.2 remote-as 1

neighbor 2.2.2.2 update-source Loopback0

neighbor 2.2.2.2 next-hop-self

neighbor 192.168.34.4 remote-as 2

no auto-summary

 

-R4-

router bgp 2

no synchronization

bgp log-neighbor-changes

network 4.4.4.0 mask 255.255.255.0

neighbor 192.168.24.2 remote-as 1

neighbor 192.168.24.2 route-map med100 out // metric 값 조정하는 route-map

neighbor 192.168.34.3 remote-as 1

no auto-summary

!

access-list 4 permit 4.4.4.0 0.0.0.255 // route-map에 적용하기 위한 ACL

!

route-map med100 permit 10 // metric 값 조정

match ip address 4

set metric 100

!

route-map med100 permit 20

 

 

Check​

4.4.4.0 이 3.3.3.3을 통해서 오는 것을 확인할 수 있다.​

 

728x90
반응형

'■ Communications > ↘ Cisco GNS' 카테고리의 다른 글

BGP ORF 이론 및 실습  (0) 2019.04.30
BGP AS_Path Access-list 이론 및 실습  (0) 2019.04.30
BGP MED 이론 및 실습  (0) 2019.04.30
BGP Local preference 이론 및 실습  (0) 2019.04.30
BGP Weight 이론 및 실습  (0) 2019.04.30
Comments