본문 바로가기
Network/ccie-mpls

MPLS VPN configuration

Creating VRF Tables and Assigning RDs

## vrf 생성
Router(config)# ip vrf name   

## RD값 생성(RD값이 없을 경우 VRF가 동작 하기 않는다)
Router(config-vrf)# rd route-distinguisher

## RT export 
Router(config-vrf)# route-target export RT   

## RT import 
Router(config-vrf)# route-target import RT

## RT, import,export 를 함께 사용 (both 가 없어도 default 로 들어 감)
Router(config-vrf)#  route-target both RT


Assigning an Interface to a VRF Table

## 해당 인터페이스에 vrf를 적용 한다.
Router(config-if)#  ip vrf forwarding vrf-name   

MPLS VPN Network Example


Configuring MP-IBGP

## BGP세션을 맺기 위한 글로벌 config 는 동일 하다.
Router(config)#
router bgp as-number
 neighbor ip-address remote-as as-number
 neighbor ip-address update-source interface-type
      interface-number

## vpn v4 사용시 아래 config 를 추가후 해당 vpnv4 에 들어가 설정 한다.
Router(config-router)# address-family vpnv4

## 해당 네이버에 대하여 활성화 한다.(만약 ipv4 면 ipv4에 대하여만,vpn v4 vpnv4 에 대하여만 active 된다.)
Router(config-router-af)# neighbor ip-address activate   

##next-hop-self 는 active 시 화면에 display 되지 않지만 적용 되어진다.
Router(config-router-af)# neighbor ip-address next-hop-self

## send-community 는 기본적으로 extended  로 active 시 config 가 들어 간다.
Router(config-router-af)# neighbor ip-address send-community [standard | extended   | both] 



##Vpn 서비스만을 하기 위해서 ipv4 를 사용 하지 않는 경우 global 에서 ipv4 를 disable 시킨 뒤
    필요한 네이버에 대한것만 active 하여 기능을 활성화 할 수 있음.
Router(config-router)#no bgp default ipv4-unicast   


반응형

'Network > ccie-mpls' 카테고리의 다른 글