hostname R1
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 R1 VLAN 10]
 vrf VRF_DEFAULT
 router 10.1.30.1
 traffeng-id 0.0.0.0
 area 0 enable
 area 0 spf-ecmp
 ecmp
 exit
!
router ospf6 10
 description [IPv6 OSPF FOR R1 VLAN 10]
 vrf VRF_DEFAULT
 router 10.1.30.1
 traffeng-id ::
 area 0 enable
 area 0 spf-ecmp
 ecmp
 exit
!
router bgp4 10
 description [IPv4 iBGP/eBGP FOR R1 VLAN 10]
 vrf VRF_DEFAULT
 local-as 293
 router-id 10.1.30.1
 no safe-ebgp
 address-family vpnuni
 neighbor 10.2.30.2 remote-as 293
 neighbor 10.2.30.2 description [VLAN ID = 30] [R1@ETH2] -> [R2@ETH3]
 neighbor 10.2.30.2 local-as 293
 neighbor 10.2.30.2 address-family vpnuni
 neighbor 10.2.30.2 distance 200
 neighbor 10.2.30.2 update-source loopback30
 neighbor 10.2.30.2 send-community standard extended
 neighbor 10.3.30.3 remote-as 20965
 neighbor 10.3.30.3 description [VLAN ID = 30] [R1] -> [R2/R4] -> [R3]
 neighbor 10.3.30.3 local-as 293
 neighbor 10.3.30.3 address-family vpnuni
 neighbor 10.3.30.3 distance 20
 neighbor 10.3.30.3 update-source loopback30
 neighbor 10.3.30.3 send-community standard extended
 neighbor 10.1.12.2 remote-as 20965
 neighbor 10.1.12.2 description [VLAN ID = 30] [R1@ETH1] -> [R4@ETH1]
 neighbor 10.1.12.2 local-as 293
 neighbor 10.1.12.2 address-family vpnuni
 neighbor 10.1.12.2 distance 20
 neighbor 10.1.12.2 update-source ethernet1
 neighbor 10.1.12.2 send-community standard extended
 readvertise 10.1.30.1/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 R1 VLAN 10]
 vrf VRF_DEFAULT
 local-as 293
 router-id 10.1.30.1
 no safe-ebgp
 address-family vpnuni
 neighbor fd01:30::2 remote-as 293
 neighbor fd01:30::2 description [VLAN ID = 30] [R1@ETH2] -> [R2@ETH3]
 neighbor fd01:30::2 local-as 293
 neighbor fd01:30::2 address-family vpnuni
 neighbor fd01:30::2 distance 200
 neighbor fd01:30::2 update-source loopback30
 neighbor fd01:30::2 send-community standard extended
 neighbor fd01:30::3 remote-as 20965
 neighbor fd01:30::3 description [VLAN ID = 30] [R1] -> [R2/R4] -> [R3]
 neighbor fd01:30::3 local-as 293
 neighbor fd01:30::3 address-family vpnuni
 neighbor fd01:30::3 distance 20
 neighbor fd01:30::3 update-source loopback30
 neighbor fd01:30::3 send-community standard extended
 neighbor fd00:51e5::a:1:12:2 remote-as 20965
 neighbor fd00:51e5::a:1:12:2 description [VLAN ID = 30] [R1@ETH1] -> [R4@ETH1]
 neighbor fd00:51e5::a:1:12:2 local-as 293
 neighbor fd00:51e5::a:1:12:2 address-family vpnuni
 neighbor fd00:51e5::a:1:12:2 distance 20
 neighbor fd00:51e5::a:1:12:2 update-source ethernet1
 neighbor fd00:51e5::a:1:12:2 send-community standard extended
 readvertise fd01:30::1/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 R1 VLAN 10]
 vrf forwarding VRF_ATLAS
 ipv4 address 10.1.10.1 255.255.255.255
 ipv6 address fd01:10::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
 ipv6 enable
 no shutdown
 no log-link-change
 exit
!
interface loopback20
 description [LOOPBACK FOR R1 VLAN 20]
 vrf forwarding VRF_CMS
 ipv4 address 10.1.20.1 255.255.255.255
 ipv6 address fd01:20::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
 ipv6 enable
 no shutdown
 no log-link-change
 exit
!
interface loopback30
 description [LOOPBACK FOR R1 VLAN 30]
 vrf forwarding VRF_DEFAULT
 ipv4 address 10.1.30.1 255.255.255.255
 ipv6 address fd01:30::1 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.12.1 255.255.255.0
 ipv6 address fd00:51e5::a:1:12:1 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.1 255.255.255.0
 ipv6 address fd00:51e5::a:1:14:1 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 colorize prompt
 exec logging
 no exec authorization
 no login authentication
 login logging
 vrf VRF_DEFAULT
 exit
!
end
