N's Story

BGP Local preference 이론 및 실습 본문

■ Communications /↘ Cisco GNS

BGP Local preference 이론 및 실습

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

BGP Local preference
로컬 AS 경로에 대한 선호도로 로컬 AS 로부터 AS 외부로 나가는 트래픽 제어한다. AS라는 가상 라우터 관점의 송신경로를 위한 설정한다.

 

 

Topology

 

 

Command

Router(config-router)#neighbor ip-address weight value // 모든 네트워크 정보에 weight 부여​

 

// 특정 네트워크에 route-map 이용하여 Local preference 부여

Router​(config)#route-map map-name permit seq

Router​(config-route-map)#match ip address access-list-number

Router​(config-route-map)#set local-preference value

 

Router​(config-route)#neighbor ip-address route-map map-name in

 

 

=> 33.33.33.0/24의 local-preference를 200으로 설정

R1과 NEIGHBOR 설정시 route-map 적용

- route-map 이용하여 특정경로 설정-

 

R6(config)#access-list 10 permit 33.33.33.0 0.0.0.255

R6(config)#route-map lp permit 10

R6(config-route-map)#match ip address 10

R6(config-route-map)#set local-preference 200

R6(config)#route-map lp permit 20

 

R6(config)#router bgp 400

R6(config-router)#neighbor 10.1.16.1 route-map lp in

 

 

Check

 

728x90
반응형
Comments