!! IOS XR Configuration 5.2.2
!! Last configuration change at Sat Feb 7 23:06:47 2015 by juniper
!
hostname PE2
group GR-LSP
interface ‘tunnel-te.*’
ipv4 unnumbered Loopback0
autoroute announce
!
record-route
path-option 1 dynamic
!
end-group
telnet vrf default ipv4 server max-servers 10
vrf VRF-A
address-family ipv4 unicast
import route-target
65000:1001
!
export route-target
65000:1001
!
!
!
line console
exec-timeout 0 0
session-timeout 0
!
line default
exec-timeout 0 0
session-timeout 0
!
vty-pool default 0 10 line-template default
ipv4 unnumbered mpls traffic-eng Loopback0
ipv4 prefix-list PR-TUNNEL
10 permit 172.16.0.0/24 eq 32
20 permit 172.16.0.33/32
30 permit 172.16.0.44/32
!
interface Loopback0
ipv4 address 172.16.0.22 255.255.255.255
!
interface Loopback1
vrf VRF-A
ipv4 address 192.168.10.22 255.255.255.255
!
interface MgmtEth0/0/CPU0/0
ipv4 address 10.255.0.22 255.255.0.0
!
interface GigabitEthernet0/0/0/0
!
interface GigabitEthernet0/0/0/0.1020
vrf VRF-A
ipv4 address 10.1.0.3 255.255.255.254
encapsulation dot1q 1020
!
interface GigabitEthernet0/0/0/1
!
interface GigabitEthernet0/0/0/1.1022
vrf VRF-A
ipv4 address 10.1.22.2 255.255.255.0
encapsulation dot1q 1022
!
interface GigabitEthernet0/0/0/2
ipv4 address 10.0.0.1 255.255.255.254
!
interface GigabitEthernet0/0/0/3
ipv4 address 10.0.0.4 255.255.255.254
!
interface preconfigure GigabitEthernet0/0/0/4
!
interface preconfigure GigabitEthernet0/0/0/5
!
interface preconfigure GigabitEthernet0/0/0/6
!
prefix-set PR-HOSTS
10.1.22.0/24
end-set
!
prefix-set PR-LOOPBACKS
0.0.0.0/0
end-set
!
prefix-set PR-REMOTE-SOURCES
10.1.1.0/24 eq 32,
10.2.0.0/16 eq 32
end-set
!
prefix-set PR-VRF-A-CONNECTED
10.1.22.0/24,
192.168.10.22/32
end-set
!
route-policy PL-HOSTS
if destination in PR-HOSTS then
pass
else
drop
endif
end-policy
!
route-policy PL-BGP-MVPN
set core-tree p2mp-te-default
end-policy
!
route-policy PL-VRF-A-EXP
pass
end-policy
!
route-policy PL-VRF-A-IMP
pass
end-policy
!
route-policy PL-IBGP-RR-OUT
set next-hop self
end-policy
!
route-policy PL-MLDP-INBAND
#if source in PR-REMOTE-SOURCES then set core-tree mldp-inband else pass endif
if source in PR-REMOTE-SOURCES then
set core-tree mldp-inband
else
pass
endif
end-policy
!
route-policy PL-EBGP-65001-IN
pass
end-policy
!
route-policy PL-EBGP-65001-OUT
pass
end-policy
!
route-policy PL-VRF-A-CONNECTED-EXP
if destination in PR-VRF-A-CONNECTED then
pass
endif
end-policy
!
route-policy PL-VRF-A-EBGP-65001-IN
pass
end-policy
!
route-policy PL-VRF-A-EBGP-65001-OUT
pass
end-policy
!
router static
address-family ipv4 unicast
0.0.0.0/0 Null0
!
!
router isis mycore
is-type level-2-only
net 49.0000.1720.1600.0022.00
address-family ipv4 unicast
metric-style wide
mpls traffic-eng level-2-only
mpls traffic-eng router-id Loopback0
maximum-paths 8
!
interface Loopback0
passive
address-family ipv4 unicast
!
!
interface GigabitEthernet0/0/0/2
point-to-point
address-family ipv4 unicast
metric 100
!
!
interface GigabitEthernet0/0/0/3
point-to-point
address-family ipv4 unicast
!
!
!
router bgp 65000
bgp router-id 172.16.0.22
ibgp policy out enforce-modifications
address-family ipv4 unicast
!
address-family vpnv4 unicast
!
address-family ipv4 mvpn
!
neighbor-group RR
remote-as 65000
update-source Loopback0
address-family ipv4 unicast
route-policy PL-IBGP-RR-OUT out
!
address-family vpnv4 unicast
!
address-family ipv4 mvpn
!
!
neighbor 172.16.0.201
use neighbor-group RR
!
neighbor 172.16.0.202
use neighbor-group RR
!
vrf VRF-A
rd 172.16.0.22:101
address-family ipv4 unicast
redistribute connected route-policy PL-VRF-A-CONNECTED-EXP
!
address-family ipv4 mvpn
!
neighbor 10.1.0.2
remote-as 65001
address-family ipv4 unicast
route-policy PL-VRF-A-EBGP-65001-IN in
route-policy PL-VRF-A-EBGP-65001-OUT out
as-override
!
!
!
!
rsvp
interface GigabitEthernet0/0/0/2
!
interface GigabitEthernet0/0/0/3
!
!
mpls traffic-eng
interface GigabitEthernet0/0/0/2
!
interface GigabitEthernet0/0/0/3
!
auto-tunnel p2mp
tunnel-id min 1000 max 1050
!
signalling advertise explicit-null
!
mpls ldp
mldp
!
interface GigabitEthernet0/0/0/2
!
interface GigabitEthernet0/0/0/3
!
!
multicast-routing
address-family ipv4
interface Loopback0
enable
!
mdt source Loopback0
!
vrf VRF-A
address-family ipv4
interface Loopback1
enable
!
interface GigabitEthernet0/0/0/0.1020
enable
!
interface GigabitEthernet0/0/0/1.1022
enable
!
interface all enable
bgp auto-discovery mldp
!
mdt default mldp p2mp
!
!
!
ssh server v2
lldp
!
end
PE2 @ 5 – BGP MVPN with mLDP Transport
Advertisements