Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- !! IOS XR Configuration 5.3.3
- !! Last configuration change at Tue Oct 4 16:44:00 2016 by virtual
- !
- hostname xrv
- vrf vrf-a
- address-family ipv4 unicast
- import route-target
- 65535:1
- 65535:3
- !
- export route-policy export-to-c
- export route-target
- 65535:1
- !
- !
- !
- vrf vrf-b
- address-family ipv4 unicast
- import route-target
- 65535:2
- 65535:3
- !
- export route-policy export-to-c
- export route-target
- 65535:2
- !
- !
- !
- vrf vrf-c
- address-family ipv4 unicast
- import route-target
- 65535:100
- !
- export route-policy export-from-c
- !
- !
- interface Loopback0
- ipv4 address 1.1.1.1 255.255.255.255
- !
- interface Loopback100
- vrf vrf-a
- ipv4 address 10.1.1.1 255.255.255.255
- !
- interface Loopback200
- vrf vrf-b
- ipv4 address 10.2.2.2 255.255.255.255
- !
- interface Loopback301
- vrf vrf-c
- ipv4 address 172.16.1.1 255.255.255.255
- !
- interface Loopback302
- vrf vrf-c
- ipv4 address 172.16.2.2 255.255.255.255
- !
- route-policy export-to-c
- if destination in (10.1.1.1/32, 10.2.2.2/32) then
- set extcommunity rt (65535:100) additive
- endif
- end-policy
- !
- route-policy export-from-c
- if destination in (172.16.1.1/32, 172.16.2.2/32) then
- set extcommunity rt (65535:3) additive
- endif
- end-policy
- !
- router bgp 65535
- address-family vpnv4 unicast
- !
- vrf vrf-a
- rd 65535:1
- address-family ipv4 unicast
- aggregate-address 10.0.0.0/8 as-set
- aggregate-address 172.16.0.0/21 as-set
- redistribute connected
- !
- !
- vrf vrf-b
- rd 65535:2
- address-family ipv4 unicast
- redistribute connected
- !
- !
- vrf vrf-c
- rd 65535:3
- address-family ipv4 unicast
- redistribute connected
- !
- !
- !
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement