mpls label dynamic-block 1000 1048575
!
interface lo
 ip address 192.168.0.1/32
 ipv6 address 3fff::192:168:0:1/128
!
interface eth-rr1
 ip address 10.0.1.1/24
!
interface eth-ce1
 ip address 172.16.1.1/24
 ipv6 address 3fff:1::1/64
!
router bgp 65000
  bgp router-id 192.168.0.1
  no bgp ebgp-requires-policy
  no bgp default ipv4-unicast
  neighbor 192.168.0.101 remote-as 65000
  neighbor 192.168.0.101 bfd profile BGP
  neighbor 192.168.0.101 update-source 192.168.0.1
  neighbor 3fff::192:168:0:101 remote-as 65000
  neighbor 3fff::192:168:0:101 bfd profile BGP
  neighbor 3fff::192:168:0:101 update-source 3fff::192:168:0:1

!
 address-family ipv4 unicast
   no neighbor 192.168.0.101 activate
  exit-address-family
!
  address-family ipv4 vpn
   neighbor 192.168.0.101 activate
   neighbor 192.168.0.101 soft-reconfiguration inbound
  exit-address-family
!
  address-family ipv6 vpn
   neighbor 3fff::192:168:0:101 activate
   neighbor 3fff::192:168:0:101 soft-reconfiguration inbound
  exit-address-family
!
router bgp 65000 vrf RED
 bgp router-id 192.168.0.1
 no bgp ebgp-requires-policy
 bgp bestpath compare-routerid
 neighbor 172.16.1.254 remote-as external
 neighbor 172.16.1.254 bfd profile BGP
 neighbor 3fff:1::ff remote-as external
 neighbor 3fff:1::ff bfd profile BGP
 !
 address-family ipv4 unicast
  label vpn export 100
  rd vpn export 65000:100
  rt vpn both 65000:100
  export vpn
  import vpn
  neighbor 172.16.1.254 next-hop-self
  no neighbor 3fff:1::ff activate
 exit-address-family
!
 address-family ipv6 unicast
  label vpn export 200
  rd vpn export 65000:100
  rt vpn both 65000:100
  export vpn
  import vpn
  neighbor 3fff:1::ff activate
  neighbor 3fff:1::ff next-hop-self
 exit-address-family
exit
!
interface lo
 ip router isis 1
 isis hello-interval 2
 ipv6 router isis 1
!
interface eth-rr1
 ip router isis 1
 isis hello-interval 2
 ipv6 router isis 1
!
router isis 1
 lsp-gen-interval 2
 net 10.0000.0000.0000.0000.0000.0000.0000.0000.0001.00
 metric-style wide
 exit
!
mpls ldp
 router-id 192.168.0.1
 !
 address-family ipv4
  discovery transport-address 192.168.0.1
  !
  interface eth-rr1
  !
 address-family ipv6
  discovery transport-address 3fff::192:168:0:1
  !
  interface eth-rr1
  !
 !
!
bfd
 profile BGP
  transmit-interval 2000
  receive-interval 2000
 exit
 !
exit
