Cisco NCS 540 Series Configuration Manual page 54

L3vpn; for ios xr release 6.3.x
Hide thumbs Also See for NCS 540 Series:
Table of Contents

Advertisement

Configure VRF-lite
Router#configure
Router(config)#vrf vrf1
Router(config-vrf)#address-family ipv4 unicast
/* You must create route-policy pass-all before this configuration */
Router(config-vrf-af)#import from default-vrf route-policy pass-all
Router(config-vrf-af)#import route-target
Router(config-vrf-import-rt)#100:100
Router(config-vrf-import-rt)#exit
Router(config-vrf-af)#export route-target
Router(config-vrf-import-rt)#100:100
Router(config-vrf-import-rt)#exit
Router(config-vrf-import-rt)#commit
Similarly create vrf2, with route-target as 100:100.
• Configure VRF under the interface:
Router#configure
Router(config)#interface TenGigE0/0/0/0.2001
Router(config-subif)#vrf vrf1
Router(config-subif)#ipv4 address 192.0.2.2 255.255.255.252
Router(config-subif)#encapsulation dot1q 2001
Router(config-subif)#exit
Router(config)#interface TenGigE0/0/0/0.2000
Router(config-subif)#vrf vrf2
Router(config-subif)#ipv4 address 192.0.2.5/30 255.255.255.252
Router(config-subif)#encapsulation dot1q 2000
Router(config-vrf-import-rt)#commit
Similarly configure vrf1 under interface TenGigE0/0/0/0.2001 and vrf2 under interface
TenGigE0/0/0/0.2000
• Configure VRF under routing protocol:
Router#configure
Router(config)#router rip
Router(config-rip)#vrf vrf1
Router(config-rip-vrf)#interface TenGigE0/0/0/0.2001
Router(config-rip-vrf-if)#exit
Router(config-rip-vrf)#interface TenGigE0/0/0/0.2001
Router(config-rip-vrf-if)#exit
Router(config-rip-vrf)#default-information originate
Router(config-vrf-import-rt)#commit
Similarly configure vrf2 under rip, with interface TenGigE0/0/0/0.2000 and interface TenGigE0/0/0/1.2000
Running Configuration
/* VRF Configuration */
vrf vrf1
address-family ipv4 unicast
import route-target
100:100
!
L3VPN Configuration Guide for Cisco NCS 540 Series Routers, IOS XR Release 6.3.x
44
MPLS L3VPN Overview

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents