IOS-XR BGP, VRF

Lab 2:

RP/0/0/CPU0:derg-ce-a#show run  
Wed May 24 07:34:03.346 UTC
Building configuration...
!! IOS XR Configuration 6.0.1
!! Last configuration change at Wed May 24 07:31:27 2017 by cisco
!
hostname derg-ce-a
domain lookup disable
vrf portland
 address-family ipv4 unicast
  import route-target
   1:1
  !
  export route-target
   1:1
  !
 !
!
line console
 exec-timeout 0 0
!
interface MgmtEth0/0/CPU0/0
 shutdown
!
interface GigabitEthernet0/0/0/0
 description derg-ce-b; 10.0.0.2/30; g0/0/0/0
 ipv4 address 10.0.0.1 255.255.255.252
!
interface GigabitEthernet0/0/0/0.10
 description derg-ce-b; vrf portland; 10.0.10.2/30; ibgp-65000; g0/0/0/0.10
 vrf portland
 ipv4 address 10.0.10.1 255.255.255.252
 encapsulation dot1q 10
!
interface GigabitEthernet0/0/0/1
 shutdown
!
interface GigabitEthernet0/0/0/2
 shutdown
!
interface GigabitEthernet0/0/0/3
 shutdown
!
interface GigabitEthernet0/0/0/4
 shutdown
!
interface GigabitEthernet0/0/0/5
 shutdown
!
interface GigabitEthernet0/0/0/6
 shutdown
!
router bgp 65000
 bgp router-id 10.0.0.1
 address-family ipv4 unicast
  network 10.0.0.0/30
 !
 address-family vpnv4 unicast
 !
 vrf portland
  rd 1:1
  bgp router-id 10.0.0.1
  address-family ipv4 unicast
   network 10.0.10.0/30
  !
  neighbor 10.0.10.2
   remote-as 65000
   update-source GigabitEthernet0/0/0/0.10
   address-family ipv4 unicast
   !
  !
 !
!
end
!
RP/0/0/CPU0:derg-ce-a#show bgp vrf portland nei 10.0.10.2 nsr
Wed May 24 07:33:14.949 UTC

BGP neighbor is 10.0.10.2
  BGP state = Established, up for 00:14:24
  NSR state = None
  Outstanding Postits: 0
!
RP/0/0/CPU0:derg-ce-a# ping vrf portland 10.0.10.2 source 10.0.10.1  
Wed May 24 07:33:48.987 UTC
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.10.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/4/9 ms
RP/0/0/CPU0:derg-ce-b(config-bgp-vrf-af)#show run
Wed May 24 07:29:25.985 UTC
Building configuration...
!! IOS XR Configuration 6.0.1
!! Last configuration change at Wed May 24 07:29:17 2017 by cisco
!
hostname derg-ce-b
domain lookup disable
vrf portalnd
 address-family ipv4 unicast
 !
!
vrf portland
 address-family ipv4 unicast
  import route-target
   2:2
  !
  export route-target
   2:2
  !
 !
!
line console
 exec-timeout 0 0
!
interface MgmtEth0/0/CPU0/0
 shutdown
!
interface GigabitEthernet0/0/0/0
 description derg-ce-a; 10.0.0.1/30; g0/0/0/0
 ipv4 address 10.0.0.2 255.255.255.252
!
interface GigabitEthernet0/0/0/0.10
 description derg-ce-a; vrf portland; 10.0.10.1/30; ibgp-65000; g0/0/0/0.10
 vrf portland
 ipv4 address 10.0.10.2 255.255.255.252
 encapsulation dot1q 10
!
interface GigabitEthernet0/0/0/1
 shutdown
!
interface GigabitEthernet0/0/0/2
 shutdown
!
interface GigabitEthernet0/0/0/3
 shutdown
!
interface GigabitEthernet0/0/0/4
 shutdown
!
interface GigabitEthernet0/0/0/5
 shutdown
!
interface GigabitEthernet0/0/0/6
 shutdown
!
router bgp 65000
 bgp router-id 10.0.0.2
 address-family ipv4 unicast
  network 10.0.0.0/30
 !
 address-family vpnv4 unicast
 !
 vrf portland
  rd 2:2
  bgp router-id 10.0.0.2
  address-family ipv4 unicast
   network 10.0.10.0/30
  !
  neighbor 10.0.10.1
   remote-as 65000
   update-source GigabitEthernet0/0/0/0.10
   address-family ipv4 unicast
   !
  !
 !
!
end
!
RP/0/0/CPU0:derg-ce-b#show bgp vrf portland nei 10.0.10.1 nsr
Wed May 24 07:38:07.049 UTC

BGP neighbor is 10.0.10.1
  BGP state = Established, up for 00:18:54
  NSR state = None
  Outstanding Postits: 0
!
RP/0/0/CPU0:derg-ce-b#ping vrf portland 10.0.10.1 source 10.0.10.2
Wed May 24 07:38:18.868 UTC
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.10.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/4/9 ms