hostname R2
no buggy
!
vrf definition VRF_ATLAS
 description [VIRTUAL ROUTING FORWARDING USED FOR ATLAS EXPERIMENT]
 rd 1:2
 rt-import 1:2
 rt-export 1:2
 exit
!
vrf definition VRF_CMS
 description [VIRTUAL ROUTING FORWARDING USED FOR CMS EXPERIMENT]
 rd 1:3
 rt-import 1:3
 rt-export 1:3
 exit
!
vrf definition VRF_DEFAULT
 description [VIRTUAL ROUTING FORWARDING USED FOR IPv4 AND UNTAGGED TRAFFIC]
 rd 1:1
 label-mode per-prefix
 exit
!
router ospf4 10
 description [IPv4 OSPF FOR R2 VLAN 10]
 vrf VRF_DEFAULT
 router 10.2.30.2
 traffeng-id 0.0.0.0
 area 0 enable
 area 0 spf-ecmp
 ecmp
 exit
!
router ospf6 10
 description [IPv6 OSPF FOR R2 VLAN 10]
 vrf VRF_DEFAULT
 router 10.2.30.2
 traffeng-id ::
 area 0 enable
 area 0 spf-ecmp
 ecmp
 exit
!
router bgp4 10
 description [IPv4 iBGP FOR R2 VLAN 10]
 vrf VRF_DEFAULT
 local-as 293
 router-id 10.2.30.2
 no safe-ebgp
 address-family vpnuni
 neighbor 10.1.30.1 remote-as 293
 neighbor 10.1.30.1 description [VLAN ID = 30] [R2@ETH3] -> [R1@ETH2]
 neighbor 10.1.30.1 local-as 293
 neighbor 10.1.30.1 address-family vpnuni
 neighbor 10.1.30.1 distance 200
 neighbor 10.1.30.1 update-source loopback30
 neighbor 10.1.30.1 send-community standard extended
 neighbor 10.1.34.3 remote-as 20965
 neighbor 10.1.34.3 description [VLAN ID = 30] [R2@ETH2] -> [R3@ETH1]
 neighbor 10.1.34.3 local-as 293
 neighbor 10.1.34.3 address-family vpnuni
 neighbor 10.1.34.3 distance 20
 neighbor 10.1.34.3 update-source ethernet1
 neighbor 10.1.34.3 send-community standard extended
 neighbor 10.4.30.4 remote-as 20965
 neighbor 10.4.30.4 description [VLAN ID = 30] [R2] -> [R1/R3] -> [R4]
 neighbor 10.4.30.4 local-as 293
 neighbor 10.4.30.4 address-family vpnuni
 neighbor 10.4.30.4 distance 20
 neighbor 10.4.30.4 update-source loopback30
 neighbor 10.4.30.4 send-community standard extended
 readvertise 10.2.30.2/32
 ecmp
 afi-vrf VRF_CMS enable
 afi-vrf VRF_CMS redistribute connected
 afi-vrf VRF_ATLAS enable
 afi-vrf VRF_ATLAS redistribute connected
 exit
!
router bgp6 10
 description [IPv6 iBGP FOR R2 VLAN 10]
 vrf VRF_DEFAULT
 local-as 293
 router-id 10.2.30.2
 no safe-ebgp
 address-family vpnuni
 neighbor fd01:30::1 remote-as 293
 neighbor fd01:30::1 description [VLAN ID = 30] [R2@ETH3] -> [R1@ETH2]
 neighbor fd01:30::1 local-as 293
 neighbor fd01:30::1 address-family vpnuni
 neighbor fd01:30::1 distance 200
 neighbor fd01:30::1 update-source loopback30
 neighbor fd01:30::1 send-community standard extended
 neighbor fd00:51e5::a:1:34:3 remote-as 20965
 neighbor fd00:51e5::a:1:34:3 description [VLAN ID = 30] [R2@ETH2] -> [R3@ETH1]
 neighbor fd00:51e5::a:1:34:3 local-as 293
 neighbor fd00:51e5::a:1:34:3 address-family vpnuni
 neighbor fd00:51e5::a:1:34:3 distance 20
 neighbor fd00:51e5::a:1:34:3 update-source ethernet1
 neighbor fd00:51e5::a:1:34:3 send-community standard extended
 neighbor fd01:30::4 remote-as 20965
 neighbor fd01:30::4 description [VLAN ID = 30] [R2] -> [R1/R3] -> [R4]
 neighbor fd01:30::4 local-as 293
 neighbor fd01:30::4 address-family vpnuni
 neighbor fd01:30::4 distance 20
 neighbor fd01:30::4 update-source loopback30
 neighbor fd01:30::4 send-community standard extended
 readvertise fd01:30::2/128
 ecmp
 afi-vrf VRF_CMS enable
 afi-vrf VRF_CMS redistribute connected
 afi-vrf VRF_ATLAS enable
 afi-vrf VRF_ATLAS redistribute connected
 exit
!
interface loopback10
 description [LOOPBACK FOR R2 VLAN 10]
 vrf forwarding VRF_ATLAS
 ipv4 address 10.2.10.2 255.255.255.255
 ipv6 address fd01:10::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
 ipv6 enable
 no shutdown
 no log-link-change
 exit
!
interface loopback20
 description [LOOPBACK FOR R2 VLAN 20]
 vrf forwarding VRF_CMS
 ipv4 address 10.2.20.2 255.255.255.255
 ipv6 address fd01:20::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
 ipv6 enable
 no shutdown
 no log-link-change
 exit
!
interface loopback30
 description [LOOPBACK FOR R2 VLAN 30]
 vrf forwarding VRF_DEFAULT
 ipv4 address 10.2.30.2 255.255.255.255
 ipv6 address fd01:30::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
 ipv6 enable
 router ospf4 10 enable
 router ospf4 10 passive
 router ospf4 10 area 0
 router ospf6 10 enable
 router ospf6 10 passive
 router ospf6 10 area 0
 no shutdown
 no log-link-change
 exit
!
interface ethernet1
 vrf forwarding VRF_DEFAULT 
 ipv4 address 10.1.34.4 255.255.255.0
 ipv6 address fd00:51e5::a:1:34:4 ffff:ffff:ffff:ffff::
 mpls enable
 mpls ldp4
 mpls ldp6
 router ospf4 10 enable
 router ospf4 10 area 0
 router ospf6 10 enable
 router ospf6 10 area 0
 no shutdown
 no log-link-change
 exit
!
interface ethernet2
 vrf forwarding VRF_DEFAULT 
 ipv4 address 10.1.14.2 255.255.255.0
 ipv6 address fd00:51e5::a:1:14:2 ffff:ffff:ffff:ffff::
 mpls enable
 mpls ldp4
 mpls ldp6
 router ospf4 10 enable
 router ospf4 10 area 0
 router ospf6 10 enable
 router ospf6 10 area 0
 no shutdown
 no log-link-change
 exit
!
interface ethernet3
 no shutdown
 no log-link-change
 exit
!
server telnet tel
 security protocol telnet
 exec timeout 10000000
 exec logging
 exec colorize prompt
 no exec authorization
 no login authentication
 login logging
 vrf VRF_DEFAULT
 exit
!
end
