Skip to content

Example: interop1: bgp 6pe

Alt text


hostname r1
vrf def v1
 rd 1:1
 label-mode per-prefix
int eth1
 vrf for v1
 ipv4 addr
 mpls enable
 mpls ldp4
ipv4 route v1
int lo0
 vrf for v1
 ipv4 addr
 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
router bgp4 1
 vrf v1
 address olab
 local-as 1
 neigh remote-as 1
 neigh update lo0
 neigh send-comm both
 afi-other ena
 afi-other red conn


hostname r2
ip routing
ipv6 unicast-routing
mpls ldp explicit-null
interface loopback0
 ip addr
 ipv6 addr 4321::2/128
interface gigabit1
 ip address
 mpls ip
 no shutdown
ip route
router bgp 1
 neighbor remote-as 1
 neighbor update-source loopback0
 address-family ipv6 unicast
  neighbor activate
  neighbor send-community both
  neighbor send-label
  red conn
r1 tping 100 10 vrf v1
r1 tping 100 120 4321::2 vrf v1
  1. Install ContainerLab as described here
  2. Fetch intop1-bgp18 file
  3. Launch ContainerLab intop1-bgp18.yml topology:

   containerlab deploy --topo intop1-bgp18.yml  
4. Destroy ContainerLab intop1-bgp18.yml topology:

   containerlab destroy --topo intop1-bgp18.yml  
5. Copy-paste configuration for each node in the lab topology

  1. Fetch or compile freeRtr rtr.jar file.
    You can grab it here
  2. Fetch intop1-bgp18.tst file here
  3. Launch intop1-bgp18.tst test:

   java -jar ../../rtr.jar test tester intop1-bgp18 path ./ temp ./ wait
4. Destroy freeRtr intop1-bgp18.tst test:

   Ctrl-C (In freeRtr test window)